Java Step into method with the mouse
Answered
Hey,
I've switched from Eclipse to Intellij some time ago and so far it has been good experience with Intellij :)
While debugging with Eclipse, you could step into a method selection either with a cursor + keyboard shortcut or simply holding ctrl + alt + left mouse button (on windows). Unfortunately, I could not find this for "step into method selection". Am I missing something?
Thanks :)
Best regards,
Konstantin
Please sign in to leave a comment.
Hello.
Default shortcut is F7, to change it go to Settings | Keymap and search for Step Into action, double click on action and choose "Add Mouse Shortcut",
Hey Petr,
thanks for the reply, but that is not what I meant.
I you have "chained" method call like:
MyClass.builder().withString("someString").withInt(10).withLong(100L).build();How can I "step into a method" like the withLong if the debugger is right in front of the line? With Eclipse I would hit the keys control + alt and click with the left mouse button on the withLong method name. The debugger would jump directly on the first line of the method withLong.
How can I do that in IntelliJ :) ?
Thanks you :)
Best regards,
Konstantin
Please check : https://www.jetbrains.com/help/idea/choosing-a-method-to-step-into.html
I've read this before asking my question In my workflow, using the mouse to select the method where I want to debug into, just simply works faster. Meanwhile, the new 2019 EAP provides this “Run to mouse pointer” mouse gesture. That is pretty close and works for me.
Anyone that want to try, have a look here: https://blog.jetbrains.com/idea/2019/02/whats-new-in-intellij-idea-2019-1-eap-3/