I successfully connected to the remote jvm server, but I can only debug the start.jar. I extracted the war files at webapps folder and the breakpoint is useless. How can I debug the web code? Btw without maven.
Create a file ${jetty.base}/modules/remote-debug.mod
with a variation of what you need for remote debug (different configuration for port or suspend?)...
[exec]
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9999
Then when you want debug just add the command line --module=remote-debug
to your start.jar
execution and the remote debug will be used for just that execution.
Then it's just a matter of you starting a remote debug session in your IDE against the same configuration.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.