Is there anyway to locate where my application is hang?
已回答
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.
请先登录再写评论。
Hello,
Could you please clarify the issue? If you debug line by line then you should see the last line before the hang.
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.
I guess you need to check thread dumps in such cases: https://stackoverflow.com/questions/9833497/tool-for-debugging-hangs-in-java-application
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?
Use jstack to see what app is doing.