How to develop and debug org.jacoco.agent.rt ?

158 views
Skip to first unread message

Tool Ply

unread,
Apr 22, 2018, 8:13:40 AM4/22/18
to JaCoCo and EclEmma Users
Just as title shows, I want to develop org.jacoco.agent.rt witch is added to Classpath and called by instrumented code in runtime. How can I debug it step by step?

Marc Hoffmann

unread,
Apr 23, 2018, 5:21:24 AM4/23/18
to jac...@googlegroups.com

Hi,

the agent can be debugged as any other Java program. The only catch is that the classes in jacocoagent.jar are relocated during the build. But you can create a custom build without relocation, just delete the relocation configuration here:

https://github.com/jacoco/jacoco/blob/master/org.jacoco.agent.rt/pom.xml#L57

Regards,
-marc

 

On 2018-04-22 14:13, Tool Ply wrote:

Just as title shows, I want to develop org.jacoco.agent.rt witch is added to Classpath and called by instrumented code in runtime. How can I debug it step by step?

 

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/b5c77914-72de-4e80-aa13-2141dada06a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

 

Tool Ply

unread,
Apr 24, 2018, 10:54:38 AM4/24/18
to JaCoCo and EclEmma Users
Thanks

在 2018年4月23日星期一 UTC+8下午5:21:24,Marc R. Hoffmann写道:
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages