This is a jstack output from a running JVM
'FooThread' prio=10 tid=0x00007f159c2ca000 nid=0x6e21 waiting on condition ..snipped java.lang.Thread.State: TIMED_WAITING (sleeping) at java.lang.Thread.sleep(Native Method) at com.myco.impl.QueueFooThread.run(Unknown Source)
I want the line number in QueueFooThread to show up like this frame for the Catalina process
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1548)
What should I do during compilation/bootstrap time to enable this ? Thanks
This may not be a complete answer, but passing the
-g(debugging) option tojavacenables the debugger (jdb) to display source information, including line numbers. I’m not sure if it’ll work for your case.