I created a javaagent jar file and attached it with a web application (by using -javaagent
keyword on the startup of web application). How can i possible to remote debug this javaagent with eclipse
Remote debug javaagent jar file
Asked Answered
java agentlib:jdwp=transport=dt_socket,server=y,address=10110,suspend=y
-javaagent:pathTo/myagent.jar -cp pathTo/myApp.jar com.example
In Eclipse, attach the debugger to agent jar by adding the following statement to VM arguments.
agentlib:jdwp=transport=dt_socket,server=y,address=10110,suspend=y
© 2022 - 2024 — McMap. All rights reserved.