Debugging Script Options

Command Action
b [ line_number] Toggle a break point on the current or specified line of the current or specified source.

The line is highlighted, when break point is set.

B Display all set break points in the current or specified source.
c [number] Continue (execute the source) up to the next break point. If you specify a number,

the debugger skips that number of break points. The executed source lines are not displayed.

d Delete the break point on the specified line number in the source. If you do not specify a line

number, the debugger provides the opportunity to interactively delete any break point in the

current source file.

D Delete all set break points in the specified or current source.
delete all Delete all traces and stop instructions.
delete number Delete a specified trace or stop instruction.
<expression> Execute the specified expression.
g line_number Continue program execution at the specified line number (goto).
help (or ?) Start the Help Viewer for debugger options.
l Display the full list of program variables.
L Display the list of program variables that have a value, and display their current values.

To stop displaying the contents of an array, enter ‘n’ at the question ‘More ?’.

q Exit the debugger (quit).
return Continue execution until the end of the current function.
s [number] Execute the program step by step, the specified number of instructions at a time

(default is 1). During execution, the intermediate source lines are not displayed.

S [number] Similar to ‘s’, except that a function call is executed as a single statement.
stop if <expression> Stop execution when expression is True.
stop in <function> Stop execution when function is entered.
t variable Trace the specified variable during program execution. The execution of the program

stops every time the value of the variable is changed. You cannot trace array variables or

common variables.

T variable [value] Same as ‘t’, except that program execution is not stopped when the variable changes.

If you specify a value, execution stops when the variable gets that value.

u [variable] Stop tracing the specified variable. If no variable is specified, you can stop tracing each

variable interactively.

U Stop tracing all variables currently being traced.
/pattern Seek a matching text pattern in the current source and display that line.
<Arrow up>/ <Arrow down> In history mode, these display previously executed commands on the command line.

In normal mode, these move the cursor through the source.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s