Is there anyway to locate where my application is hang?

Answered

Hi,

I debug my code in Intellij idea line by line, and suddenly I lost the focus.

The application is hang somewhere.

Is there any way to locate which line that the application is hanging? Thanks.

5 comments
Comment actions Permalink

Hello,

Could you please clarify the issue? If you debug line by line then you should see the last line before the hang.

0
Comment actions Permalink

Hi,

OK. Maybe I can say it in a different way.

There is no breakpoint in my code. I click the debug button and the application hangs at some line which is very time consuming.

Is there any way in Intellij idea to locate this line?

Many many thanks.

 

 

0
Comment actions Permalink

Hi Yaroslav,

Maybe it hangs at some line like 'System.read()'. There is no memory issue here.

How can I locate this line if this project code is complicated?

0
Comment actions Permalink

Use jstack to see what app is doing.

0

Please sign in to leave a comment.