Debug Mode timeout Tomcat

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?

Answers


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.


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.


Need Your Help

Nuget consolidate vs update

visual-studio-2015 nuget

In NuGet for Visual Studio 2015, what is the difference between consolidate and update actions? In both cases I select a specific version that I want to use in selected projects.