7

I have a Java Tomcat web application built in IntelliJ that calls code in another module called "Stuff". I've attached the source of the relevant code to "Stuff" so I can step into it and hit breakpoints, but I cannot see variables or their values. Watches don't work either. All I get is "Debug info unavailable".

How do I see the debug info?

Ed Norris
  • 4,233
  • 5
  • 27
  • 29

2 Answers2

4

Please compile using the following options:

javac -g:source,lines,vars
Daniel Serodio
  • 4,229
  • 5
  • 37
  • 33
mady
  • 41
  • 1
3

I guess it's related to this question. Make sure the classes are compiled with the debug info. It can be tuned in Settings | Compiler or if you build from Ant, you need debug=on attribute for the javac task.

Community
  • 1
  • 1
CrazyCoder
  • 389,263
  • 172
  • 990
  • 904
  • Thanks, it was the Ant task configuration. For those wondering exactly how to do this, add debug="on" to the javac node in your ant build configuration file. – Ed Norris Oct 08 '09 at 18:10