Debug Mode timeout Tomcat
Solution 1
Figured out the reason. If we have too many breakpoints the debug mode strangely takes too much time to start. Disable all the breakpoints and start in debug mode, when started enable the breakpoints as needed.
Solution 2
Could it be waiting for you to connect?
The docs say to type:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
but if you typed suspend=y, it would wait forever eventually timing out.
Comments
-
Global Warrior almost 2 years
I try to start my Tomcat in debug mode but it throws the following error:
Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor
I even tried to update the timeout time but it still gets timed out. But, when I try to start the tomcat (in non debugging mode) it starts normally. Any idea what might be causing problem?
-
vadim over 10 years+1 Your solution worked for me as well. Thank you for sharing it.
-
Smrita about 10 yearsThank you for sharing.You saved my time:)
-
Gruber about 10 years@Global Warrior: Thanks, worked for me too, despite only having five breakpoints. Incredible bug. And I don't understand why this question is closed.
-
StudioWorks over 9 yearsI had only two breakpoints but they were "Java Exception Breakpoints". Visitors be warned. Thanks.
-
blackcatweb about 8 yearsThis worked for me, too, but I had only 4 breakpoints, and have had many more than that in the past. shrug
-
pidabrow over 6 yearsWell, I set up my workspace yesterday and since then I've made three breakpoints. Once I removed them all, it suddenly started to work. So maybe the problem is not related to the number of breakpoints but to breakpoints in general.