Tomcat debugger disconnect prematurely
Answered
Hi,
I want to debug some shutdown hooks I have in a web app hosted on a tomcat, but it seems that as soon as I hit the 'Stop' button, the debugger is instantly disconnected.
Is there a way to delay the disconnection, until the process actually finishes?
I use a Local Tomcat debug configuration, with the following JAVA_OPTS: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:63321,suspend=y,server=n
I am on Intellij IDEA 2020.1 and the debugger are settings are mostly those by defaults.
Thank you
Please sign in to leave a comment.
Hello,
Please attach screenshot from "Settings / Preferences | Build, Execution, Deployment | Debugger"
Hi,
Here is the capture:
You may try suggestion from this thread: https://stackoverflow.com/questions/24660408/how-can-i-get-intellij-debugger-to-allow-my-apps-shutdown-hooks-to-run
Also please follow related issue: https://youtrack.jetbrains.com/issue/IDEA-75946. Seems we should reopen it.
Thank you, I tried to look on YouTrack, but did not manage to find this issue.
So it seems that the feature exists, but does not work on Windows. I'll follow the issue and see if it evolves.