Writing a program for debugging

You can make your programs easier to debug by following the simple guidelines outlined in this topic.

To debug programs at the level of source code statements, you must specify the compiler options that generate debug information. In some cases, you must specify additional options that enable the debug engine to work properly with your code. Some compilers provide the capability to generate line-only debug information. This option can dramatically shrink the size of the resulting executable. If this option is selected, the debugger will be able to show you where you are in the program, but it will be unable to show you the values of any variables. This option is useful when debugging optimized code, where the values of variables cannot be reliably displayed anyway.


Feedback