Writing a program for debugging

You can make your programs easier to debug by following these simple guidelines:

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.