In Visual Studio F5 , it is used both to start debugging and to resume the program after starting debugging (or "continue"). Intellij has separate debugging commands ( Shift + F9 ) and resumes the F9 program).
Pressing F9 (resuming program) when the debugger is not running brings up a context menu with a list of startup configurations, and pressing Shift + F9 (starting debugging) when the debugger starts, starts a new instance of the program and kill the old instance (!). I can match F5 to both resume the program and start debugging, but it behaves as if it were displayed to resume the program alone. Instead, I would like F5 to resume the program if the debugger is running, and start debugging otherwise.
Is there a way to change the key functionality in Intellij based on whether the debugger is running so that I can act like F5 in Visual Studio?
In the corresponding note, is there a way to make F10 and F11 (Step Over / Step Into) start debugging on the first line if the debugger is not already running, just like in Visual Studio?
source share