debugger commands when the debugger startsit presents (pdbprompt such as the followingimport pdb import buggymodule pdb run('buggymodule start()'( )?((pdb(pdbis the debugger prompt at which the following commands are recognized note that some commands have short and long form in this caseparentheses are used to indicate both forms for exampleh(elpmeans that either or help is acceptable [!]statement executes the (one-linestatement in the context of the current stack frame the exclamation point may be omittedbut it must be used to avoid ambiguity if the first word of the statement resembles debugger command to set global variableyou can prefix the assignment command with "globalcommand on the same line(pdbglobal list_optionslist_options ['- '(pdba(rgsprints the argument list of the current function alias [name [command]creates an alias called name that executes command within the command stringthe substrings '% ','% 'and so forth are replaced by parameters when the alias is typed '%*is replaced by all parameters if no command is giventhe current alias list is shown aliases can be nested and can contain anything that can be legally typed at the pdb prompt here' an exampleprint instance variables (usage "pi classinst"alias pi for in % _dict_ keys()print "% ", ,"=",% _dict_ [kprint instance variables in self alias ps pi self (reak[loc [condition]sets breakpoint at location loc loc either specifies specific filename and line number or is the name of function within module the following syntax is usedsetting description filename: function module function line number in the current file line number in another file function name in the current module function name in module if loc is omittedall the current breakpoints are printed condition is an expression that must evaluate to true before the breakpoint is honored all breakpoints are assigned lib fl ff