Remote debug javaagent jar file
Asked Answered
P

1

6

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

Poisoning answered 7/11, 2013 at 11:49 Comment(0)
D
1
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
Deist answered 11/6, 2018 at 20:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.