C and C++ SoftBench User's Guide
Using SoftBench Debugger
Preparing Your Program for Debugging
Chapter 7 159
Preparing Your Program for Debugging
Use Builder to compile (build) your projects for debugging. By default,
Builder automatically generates the debug information required by
SoftBench Debugger if you set the the "■ Debug" compile mode toggle
button on the SoftBench main tool face. It may be necessary to recompile
your application after enabling the "■ Debug" toggle.
SoftBench Debugger uses information placed in the executable file by the
"debug" option of your language compiler. Most compilers use the -g
option. The aCC compiler also accepts the -g0 flag, forcing the compiler
to generate full debug information. This flag is recommended for use
with SoftBench Debugger
You do not need to make changes to your source code to use SoftBench
Debugger. SoftBench Debugger works with both window-oriented and
standard I/O programs. (See “Interacting with Your Program” on page
174.)