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

前端 未结 9 1810
情深已故
情深已故 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:20

    For windows first set variables:

    set JPDA_ADDRESS=8000
    set JPDA_TRANSPORT=dt_socket
    

    to start server in debug mode:

    %TOMCAT_HOME%/bin/catalina.bat jpda start
    

    For unix first export variables:

    export JPDA_ADDRESS=8000
    export JPDA_TRANSPORT=dt_socket
    

    and to start server in debug mode:

    %TOMCAT_HOME%/bin/catalina.sh jpda start
    

提交回复
热议问题