Java bytecode debugging

I would like to know if there is any IDE or Eclipse plugin that supports mixed mode debugging. When I searched for the term mixed mode, I found a lot of links debugging VM languages ​​along with native code.

But I mean a function similar to that available in compiled languages, such as C, where the user can see both the original C line along with the corresponding pipeline line, and enter at the level even at the assembly level. (please excuse me if I made a nomenclature mistake calling the function mixed mode)

In other words, I am looking for the following functions when debugging java:

  • Ability to use java source code and corresponding byte codes at run time
  • Ability to view PC JVM records and operand stacks
  • Ability to view other specific JVM data structures (e.g. persistent pools)

This is to understand how Java source code maps to byte codes and how the various data structures associated with the JVM influence when you enter it.

+6
source share
2 answers

I am a DSL developer and have come across this issue several times.

The only tool I found was Dr. Trash .

They don't seem to be supported better at the moment, but they work with the corresponding versions of eclipse.

+1
source

You do not need a debugger to understand how Java code maps compiled native code. You can use the -XX:+PrintCompilation JVM flag. See the Mode Information on Stephen Coleborn's blog post page and Kris Mok for more details on this post .

You can also find the HotSpot Internals Wiki .

0
source

All Articles