IntelliJ - Debugging set next statement?

2020-07-05 05:37发布

问题:

How can I step back to a previous line when I'm debugging in IntelliJ?

I don't see anything in the debug menu or commands to do this.

回答1:

There's no backward debugging support in IDEA currently. Nevertheless (for Java) there is Drop Frame action and button on the debugger toolbar. It lets you go one frame up in the stack and re-enter the current method.



回答2:

The Chronon plugin, which is available for free with IntelliJ IDEA 13, can do this for you. It has limitations, though; chiefly, if your application runs outside of the IDE itself (like a Tomcat or Jetty server), the free version won't be usable with your setup.