2 Replies Latest reply: Aug 18, 2008 9:42 AM by 843810 RSS

    Is it possible to determine last source code line executed by the JVM?

    843810
      Hi all,

      i've got a huge 3rd party program (but with source code) with a lot of running threads. How can i determine the last line of the source code that is executed by the JVM?

      I think that in one of the threads a System.exit(0) or something like that is called but i've no clue where in the source code it happens. Putting breakpoints all over the source code is not a solution...i need a more general and reliable way...something like a trigger that is fired when the JVM "leaves" the source code (btw a shutdown hook is not reached)

      Any advices? Thanks in advance