Sun Studio 12 Update 1: C++ User's Guide

Interactions

If you are debugging an OpenMP program with dbx, compile with -g and -xopenmp=noopt so you can breakpoint within parallel regions and display the contents of variables.