Start/pause/stop debug session
Set breakpoints in the source code.
If necessary, create or modify the corresponding Run/Debug configuration.
The debug session starts with the selected run/debug configuration. Note that several debug processes can be launched simultaneously.
Select the run/debug configuration to execute, and then do one of the following:
Click
icon in the left gutter, and then choose
.
Click
on the toolbar.
Select Run | Debug 'selected configuration' from the main menu.
Press .
Invoke the Run Anything dialog by pressing (or search for Run anything in Help | Find Action ).
In the Run Anything dialog, start typing the configuration name, select it from the list, then hold down to switch to Debug mode, and press to debug the selected configuration:
Note that after you've launched a debug session, the Debug tool window icon () toggles to
indicating that the debugging process is active.
note
As an alternative to using Run Anything, press , select the configuration from the list, and press .
In the main menu, go to Run | Debugging Actions | Pause Program.
Click
on the Debug toolbar.
In the main menu, go to Run | Debugging Actions | Resume Program.
Click
on the Debug toolbar.
Press .
Click the Stop button on the toolbar of the Debug tool window. Alternatively, press and select the process to terminate (if there are two or more of them).