Using Sun WorkShop

Preparing a Program for Debugging

To prepare an application for debugging, compile the application using the -g or -g0 (zero) option, which instructs the compiler to generate debugging information during compilation. For information on how to specify these options in your makefile, see Appendix B, The make Utility and Makefiles" For more detailed information on preparing your program for debugging, see Debugging a Program With dbx.