IntelliJ Plugin - Debug

Questions about YourKit Java Profiler
Post Reply
mariella
Posts: 1
Joined: Fri Apr 06, 2018 7:30 am

IntelliJ Plugin - Debug

Post by mariella »

Hi,

Is it possible to start a debug session with IntelliJ Yourkit plugin?
In Itellij I can see just an icon to "Run" my application, not to "Debug" my application.

Tahnks in advance
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: IntelliJ Plugin - Debug

Post by Anton Katilin »

The action "Profile" works in "Run" mode.

To debug with profiling:

- Add JVM option -agentpath with necessary parameters to your run configuration. This help topic describes how to compose it: https://www.yourkit.com/docs/java/help/agent.jsp Alternatively, you can generate -agenpath with the help of the standalone EE server integration wizard available on the profiler's Welcome screen. In the wizard, choose the "Generic server" option to explicitly get the needed -agentpath.

- Use "Debug" as you usually do.

- When you've done with profiling, remove -agentpath from the JVM options.
Post Reply