suspend execution without breakpoint?

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!

2 comments
Comment actions Permalink

peter360 wrote:

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 rest
arting 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!

---
Original message URL: http://www.jetbrains.net/devnet/message/5233073#5233073

Does the pause button in the debug toolwindow not give you what you
need?
N.

1
Comment actions Permalink

I knew I missed something really obvious...  Thanks.

0

Please sign in to leave a comment.