How to start debug mode from command prompt for apache tomcat server?

前端 未结 9 2026
情深已故
情深已故 2020-12-02 05:11

I want to start debug mode for my application. But I need to start the debug mode from command prompt. Is it possible ? And will the procedure vary between tomcat 5.5 to tom

9条回答
  •  抹茶落季
    2020-12-02 05:44

    Inside catalina.bat set the port on which you wish to start the debugger

    if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
    set JPDA_ADDRESS=9001
    

    Then you can simply start the debugger with

    catalina.bat jpda 
    

    Now from Eclipse or IDEA select remote debugging and start start debugging by connecting to port 9001.

提交回复
热议问题