IntelliJ IDEA 14.0.0 Web Help

Creating Breakpoints

In this section:

Basics

A line breakpoint set_breakpoint is a breakpoint assigned to a specific line in the source code.

Line breakpoints are used in the Java, JavaScript, and Flex source code.

Line breakpoints can be set on executable lines. Comments, declarations and empty lines are not valid locations for the line breakpoints.

Creating line breakpoints in the editor

To create a line breakpoint in the editor

  1. Place the caret on the desired line of the source code.
  2. 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 Run | Toggle Line Breakpoint .
    • Press Ctrl+F8.
13.1+

Creating temporary line breakpoints

To create a temporary line breakpoint in the editor

  1. Place the caret on the desired line of the source code.
  2. Do one of the following:
    • On the main menu, choose Run | Toggle Temporary Line Breakpoint .
    • Press Ctrl+Shift+Alt+F8.

Creating line breakpoints using the breakpoints dialog box

To create a breakpoint using the Breakpoints dialog box

  1. In the Breakpoints dialog box, click add.
  2. From the drop-down list, select the type of breakpoint:
    create_exception_breakpoint

Deleting line breakpoints

To remove a breakpoint, do one of the following

  • In the Breakpoints dialog box, select the desired line breakpoint, and click delete.
  • In the editor, locate the line with the line breakpoint to be deleted, and click its icon in the left gutter.

See Also

Last modified: 12 November 2014
comments powered by Disqus