java remote debugging Tomcat app: Why does the JVM not listen?

后端 未结 1 1089
忘掉有多难
忘掉有多难 2021-02-04 10:44

I want to remote debug an application running in Tomcat 7. Tomcat is running as a service on a Win2008 server. I added the following to the Java options in the Java Configuratio

1条回答
  •  花落未央
    2021-02-04 11:03

    You need to put -Xdebug and -Xrunjdwp... on separate lines in the Java panel of the Tomcat Service Configuration Panel.

    So having:

    -Xdebug -Xrunjdwp:transport=dt_socket,address=4711,server=y,suspend=n
    

    will not work, but:

    -Xdebug
    -Xrunjdwp:transport=dt_socket,address=4711,server=y,suspend=n
    

    will.

    0 讨论(0)
提交回复
热议问题