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.
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.