Quick Reference
debug program_name -- To load a process image
attach program_name pid|core -- To attach a running process or load a core file
stop at source_file:line_number -- To stop at a given line
stop in function_name -- To stop when entering a given function
status -- To show the list of breakpoints
delete id -- To delete a given breakpoint
print variable -- To inspect a variable
where -- To view the call stack
frame id, up, down-- To move the debugger’s context through the call stack
next -- To step over next line of source code
step -- To step into the next line of source code in the called functions
step up-- To step out to the calling function
threads -- To show the list of the running threads
thread id -- To switch the debugger’s context to a given thread
syncs -- To show the list of locks
cont -- To continue execution of the program after it has been stopped
list -- Show the next lines of source code
| |