Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 1 KB

Debugging.md

File metadata and controls

28 lines (15 loc) · 1 KB

Manual to debug the inspectit-ocelot agent (with IntelliJ)

You can create a Run/Debug Configuration in IntelliJ in the upper right corner.

Use this configuration to just run the demo application with an inspectit attached:

image


To debug an inspectit agent, you have to download the inspectit-ocelot repository. After that, build a local agent.jar by running gradle assemble in the inspectit-ocelot-agent module. You will find the jar in the build folder of the agent module.

Please use the path to your locally build agent.jar in your start configuration while debugging the agent.

Then, adjust your demo run configuration like this:

image

Additionally, you have to configure a Remote JVM Debug in your local inspectit-ocelot repository:

image


At last, start your demo configuration (in normal mode, not debug) and after that start the Remote JVM Debug in debug mode.