Link to this page
Print this page
Parent topic
:
Reference
Debugger
/
Reference
Supported debug commands
The Debugger supports a set of command-line commands.
break
Sets a breakpoint at the specified line or function
backtrace
Prints a summary of how your program reached the current state.
clear
Clear breakpoint at the specified line or function.
continue
Continues the execution of the program after a breakpoint.
define
Specifies a user-defined sequence of commands.
delete
Removes breakpoints specified in a debugger session.
disable
Disables the specified breakpoint.
display
Displays the specified expression's value each time the program stops.
down
Selects and prints the function called by the current function, or the function specified by the frame number in the call stack.
enable
Enables breakpoints that have previously been disabled.
file
Specifies the name of the program being debugged.
finish
Instructs the program to continue running until just after the function in the selected stack frame returns, and then stop.
help
Provides information about debugger commands.
info
Describes the current state of the program.
list
Prints source code lines of the program being executed.
next
Continues running the program by executing the next source line in the current stack frame, and then stops.
output
Prints only the value of the specified expression, suppressing any other output.
print
Displays the current value of the specified expression.
quit
Terminates the debugger session.
run
Starts the program executing until a breakpoint is reached or the program terminates normally.
set
Allows you to set the value of specific variables for the duration of the debugger session.
source
Executes a file of debugger commands.
signal
Sends an INTERRUPT or QUIT signal to the program.
step
Continues running the program by executing the next line of source code, and then stops.
until
Continues running the program until the specified location is reached.
up
Selects and prints the function that called this one.
watch
Sets a watch point for an expression which stops execution of your program whenever the value of the expression changes.
where
Alias for backtrace command.
Unsupported commands