用字节码进行Java调试 [英] Java debugging with byte codes

查看:296
本文介绍了用字节码进行Java调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何IDE或Eclipse插件支持混合模式调试。当我搜索混合模式一词时,发现了许多调试VM语言以及本机代码的参考。

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.

但是我指的是一种与C等编译语言中可用的功能相似的功能,用户可以同时看到C源代码行和相应的汇编行并且即使在组装级别也可以介入。 (请原谅,如果我通过将功能称为混合模式而犯了命名错误)

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)

换句话说,我在调试Java时正在寻找以下功能:

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


  1. 在程序执行期间具有Java源代码和相应字节代码的能力

  2. 具有查看JVM PC寄存器的能力和操作数堆栈

  3. 查看其他JVM特定数据结构(例如常量池)的能力

这是为了了解Java源代码如何映射到字节码,以及在介入时如何影响与JVM相关的各种数据结构。

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.

推荐答案

我是DSL开发人员,多次遇到相同的问题。

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.

目前,它们似乎并不是维护得最好的,但是它们可以与适当的Eclipse版本一起使用。

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

这篇关于用字节码进行Java调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆