Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java debugging with byte codes

I would like to know if there is any IDE or Eclipse Plugin that supports mixed mode debugging. As I searched the term mixed mode, found lot of references debugging VM languages alongside with native code.

But I referring to a feature that is similar to the one available in compiled languages such as C where an user can see both C source line along side with the corresponding assembly line and will be able to step in even at assembly level. (please excuse If I had made a nomenclature mistake by calling the feature as mixed mode)

In other words I am looking for a following features while debugging java:

  1. Ability to the java source code and the corresponding byte codes during program execution
  2. Ability to see JVM PC registers and Operand stacks
  3. Ability to view other JVM specific data structures (for example constant pools)

This is to understand how the Java source code maps to byte codes and how the various JVM associated data structures are affected while stepping in.

like image 861
Shree Avatar asked Mar 02 '13 18:03

Shree


1 Answers

I'm a DSL developer and have sort of run into this same issue a number of times.

The only tool i've found has been the Dr. Garbage tools.

At the current moment, they don't seem to be the best maintained, but they do work with appropriate versions of eclipse.

like image 75
lscoughlin Avatar answered Sep 28 '22 07:09

lscoughlin