Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.25 KB

File metadata and controls

47 lines (31 loc) · 1.25 KB

Command Line Debugging Cheatsheet

Help

  • List available commands from the debugger:

Start the debugger

Attach the debugger

Breakpoints

  • Set static/code breakpoints:
  • Set static/code conditional breakpoints:

💡 The following commands pertain to the debugger when a breakpoint is met or code is paused

  • Set a breakpoint on the current line:
  • Set a breakpoint on line_number in the current file:
  • Set a breakpoint on line_number in file_name:
  • Remove a breakpoint:
  • List all breakpoints:

Control

💡 The following commands pertain to the debugger when a breakpoint is met or code is paused

  • Continue until next breakpoint:
  • Step to the next statement in the current function:
  • Step in to the next statement or into the next function:
  • Step out of the current function on the stack:

Analysis

💡 The following commands pertain to the debugger when a breakpoint is met or code is paused

  • List the current source and line_count before and after:
  • Run an expression in the current context:
  • Watch an expression:
  • Stop watching an expression:
  • Display all watched expressions:

Global control

  • Terminate the program:
  • Terminate the program and exit the debugger:
  • Restart the program: