Collecting Java debugger logs

To get the raw logs from the Java debugger please perform the following steps:

  1. Add -Didea.debugger.trace=ALL into the .vmoptions file using the Help | Edit Custom VM Options menu.
  2. Start IntelliJ IDEA from the command line (Terminal) so that console output can be observed. On Windows run bin\idea.bat, on Linux start with bin/idea.sh, on macOS use this command in the Terminal: /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea.
  3. Reproduce the problem with the debugger, copy all the text from the console and attach it to your report.

In case there is a lot of output it may be handy to start IntelliJ IDEA with the console output redirected to a file (idea.bat > output.txt on Windows, idea.sh > output.txt on Linux).

2 out of 8 found this helpful
5 comments

If you see the following output when running,

Error: Could not find or load main class # custom IntelliJ IDEA VM options

, edit idea.exe.vmoptions to remove the illegal comment "# custom IntelliJ IDEA VM options" to work around this defect.

Edited by bikernut_mass
2

There could be some issue with your .vmoptions file in the config directory (https://intellij-support.jetbrains.com/hc/articles/206544869). Wrong line endings or some incorrect Unicode symbol or option.

0

Is there no output sent to stderr? Just stdout?

The instructions above seem to assume all output of interest goes to stdout.

Thanks

0

It should go to stdout.

0

For Windows, use:

idea.bat > output.txt 2>&1

 

Source: https://stackoverflow.com/a/1420981/9768291

Edited by Jeremi Grenier Berthiaume
0

Please sign in to leave a comment.

Have more questions?

Submit a request