PyCharm 3.4.0 Web Help

Run | View Breakpoints


In this section:


Item Tooltip and shortcut Description
add Add Breakpoint
Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertCtrl+N or Alt+InsertAlt+InsertAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter
Click to show the list of available breakpoint types. Select the desired type to create a new breakpoint.
delete Remove Breakpoint Click this button to remove selected breakpoints.
Group by File Select this check box to display breakpoints under their respective files:


Breakpoint options

Option Description
Suspend Select this check box to suspend program when a breakpoint is hit. If the check box is not selected, the program is not suspended.
Condition Select this check box and specify a condition for hitting a breakpoint in the text field.

A condition is a Boolean expression.

This expression should be valid at the line where the breakpoint is set, and is evaluated every time the breakpoint is reached.If the evaluation result is true, user-selected actions are performed.

If evaluation result is true, user-selected actions are performed.

If the result is false, the breakpoint does not produce any effect. If the Debugger cannot evaluate the expression, it displays the Condition evaluation error message. You can select whether you would like to stop at this breakpoint or ignore it.

Actions In this section, select the check boxes to define the action to be performed on hitting a breakpoint:
Action Type of breakpoint Description
Log message to console All types Select this check box if you want a log message to be displayed in the console output when the breakpoint is hit.
Log evaluated expression Line breakpoints Select this check box if you wish to evaluate a certain expression at this breakpoint and to export result to the console output.


If the expression to be evaluated is incorrect when a particular breakpoint is reached, the console output displays an error message: Unable to evaluate expression <your_expression>.

Temporary All types A temporary breakpoint stops the program just once, and is then removed.
Activation policy These options are specific for Python exception breakpoints only.
Item Description
On termination The Debugger stops when the process terminates with this exception.
On raise If this option is selected, the Debugger stops on throwing an exception. So doing, there are two alternative options:
  • At each level of call chain: click this radio-button to make the Debugger stop every time an exception is thrown (including each function call up the stacktrace, until this exception is caught or the process is terminated).
  • At top of call chain: click this radio-button to make the Debugger stop only on the first place where the exception has been thrown.

See Also



Web Resources: