suspend execution without breakpoint? Follow
Sometimes while debugging a program, I stumble upon a long running method. I want to figure out where it is spending time -- perhaps there is a busy loop nested several levels down. What I want to do is to suspend the execution and check the current stack. This is often more effective than restarting the debugging session and step into the method, especially if the program is large and it takes a long time to reach the break point.
I have seen this in other debuggers (such as gdb where you can hit ctrl-C and view the current stack frame, then use cont to resume execution) and wonder if this is possible in Intellij. Thanks!
Please sign in to leave a comment.
peter360 wrote:
Does the pause button in the debug toolwindow not give you what you
need?
N.
I knew I missed something really obvious... Thanks.