"-g"
command line switch
to generate the necessary DWARF data within the .ELF file.
"-g+"
command line switch.
It is also a good idea to turn optimizations down to the lowest level. GCC at -O3 in particular generates very poor debugging data.
Clicking on a blue dot in the margin will toggle a source code breakpoint for that line. Dots indicate lines that contributed code to the final binary, some lines that you would expect a dot to appear on may not have them, if the compiler optimized that code away.
Both the watches and the evaluate / modify dialog are capable of inspecting variables
in the current scope. The evaluate / modify dialog has a button that will display
all of the variables currently in scope, and can be accessed from the Run menu of the
main Mappy VM window, or using the hotkey Ctrl+F7
.
Source Debugger
Copyright © 2001 to 2003, Bottled Light, Inc.