Running and Debugging
Function | Shortcut | Use this shortcut to... |
---|---|---|
Run | ⌃R | Run a program. |
Choose configuration and run | ⌃⌥R | Quickly select run/debug configuration and run or edit it. |
Rerun | ⌘R | Repeat execution with the same settings, with the same tab of the Run tool window having the focus. |
Rerun without loosing the focus in the editor | ⌃R | Repeat execution with the same settings, with the same tab of the editor having the focus. |
Debug | ⌃D | Debug a program. |
Choose configuration and debug | ⌃⌥D | Quickly select run/debug configuration and debug or edit it. |
Step Over | F8 | Step to the next line in the current file. See Stepping Through the Program. |
Step Into | F7 | Step to the next executed line. See Stepping Through the Program. |
Smart Step Into | ⇧F7 | Select the method to step in, if the current line contains multiple method call expressions. See Choosing a Method to Step Into. |
Step Out | ⇧F8 | Step to a first executed line after returning from the current method. See Stepping Through the Program. |
Force Step Over | ⌥⇧F8 | Run until the next line in this method or file, skipping the methods referenced at the current execution point and ignoring breakpoints. See Stepping Through the Program. |
Force Step Into | ⌥⇧F7 | Steps into the method called in the current execution point even if this method is to be skipped. See Stepping Through the Program. |
Run to Cursor | ⌥F9 | Run to the line where the caret is located. See Stepping Through the Program. |
Force Run To Cursor | ⌥⌘F9 | Run to the line where the caret is located, ignoring breakpoints. See Stepping Through the Program. |
Resume Program | ⌥⌘R | Resume program execution. |
Stop Program | ⇧F2 | Terminate a debugging session. |
Evaluate Expression | ⌥F8 | Evaluate an arbitrary expression. |
Quick Evaluate Expression | ⌥⌘F8 | Evaluate an arbitrary expression without calling Evaluate Expression dialog. |
Toggle Breakpoint | ⌘F8 | Toggle breakpoint at the current line. |
View Breakpoints | ⇧⌘F8 | View/manage all breakpoints. |
Last modified: 27 March 2018