Speeding up Tomcat in debug mode with Eclipse IDE

前端 未结 5 1975
后悔当初
后悔当初 2020-12-23 11:27

Running Tomcat through eclipse works fine in non-debug mode, but not in debug mode. When I try to start the Tomcat server in debug mode, the console output looks fine for a

5条回答
  •  天命终不由人
    2020-12-23 11:53

    I just ran into this problem myself, and this solution helped me out. However - I only had 1 breakpoint, rather than the 20+ of other posters. My one breakpoint, however, was a method breakpoint and not a line breakpoint - I wonder if the multitude of method calls at tomcat startup combined with the method breakpoint could be causing this problem... I just tried a small experiment:

    1. Setting a line breakpoint and starting debug mode - 5 second startup (normal)
    2. Setting a method breakpoint and starting debug mode - ..... not willing to wait (> 90 seconds).

    I'm guessing this is the problem.

提交回复
热议问题