In this section:
- Basics
- Creating line breakpoints in the editor
- Creating temporary line breakpoints
- Creating line breakpoints using the Breakpoints dialog box
- Deleting line breakpoints
Basics
A line breakpoint is a breakpoint assigned to a specific line in the source code.
Line breakpoints can be set on executable lines. Comments, declarations and empty lines are not valid locations for the line breakpoints.
PyCharm also allows placing the line breakpoints on the lines of Django templates.
Creating line breakpoints in the editor
- Place the caret on the desired line of the source code.
- Do one of the following:
- Click the left gutter area at a line where you want to toggle a breakpoint.
- On the main menu, choose .
- Press Ctrl+F8.
Creating temporary line breakpoints
- Place the caret on the desired line of the source code.
- Do one of the following:
- On the main menu, choose .
- Press Ctrl+Shift+Alt+F8.
Creating line breakpoints using the breakpoints dialog box
- In the Breakpoints dialog box, click
.
- From the drop-down list, select the type of breakpoint:
Deleting line breakpoints
- In the Breakpoints dialog box, select the desired line breakpoint, and click
.
- In the editor, locate the line with the line breakpoint to be deleted, and click its icon in the left gutter.
- Place caret on the desired line and press Ctrl+F8.