The Console
Special Commands
The debugger console has several commands that are not yet covered by the GUI. The console plays an important part in Winpdb since Winpdb was built around it and not the other way around as is sometimes the case with graphical debuggers where a console is injected into the GUI.
Conditional Breakpoints
To set a conditional breakpoint use the ‘bp’ command. Here is an example that sets a conditional breakpoint to the first line of function foo():
bp foo, i > 100
Evaluation and Execution of Expressions and Statements
To evaluate an expression or execute a statement use the ‘eval’ and ‘exec’ commands respectively. Here is an example that sets a global variable x with the result of function foo():
exec global x; x = foo()
Jump to Line
To jump to another line of code in the same scope use the ‘jump’ command.
Using the Console
The best way to learn more about the console is to use the console ‘help’ command. The ‘help’ command contains detailed documentation on all the commands supported by the console.
Winpdb - A Platform Independent Python Debugger
This debugger sounds great, but how bout a more detailed soup-to-nuts console section for those of us without wxwindows?
Thanks!
Y
It tells me it doesn’t know how to open the console. fedora 11