如何使用 Eclipse 调试 JNI 代码(Java & C/C++) [英] How to Use Eclipse to Debug JNI code (Java & C/C++)

查看:44
本文介绍了如何使用 Eclipse 调试 JNI 代码(Java & C/C++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我可以使用用于 Java 代码的 Eclipse JDT 调试器和用于 C 代码的 GDB 来调试我的应用程序,但我更愿意使用单个工具进行所有调试.我发现有几个项目可以在 Eclipse 中启用混合模式"调试,并支持 Java 和本机代码之间的单步执行.

While I can debug my application with the Eclipse JDT debugger for Java code and GDB for C code, I would prefer to use a single tool for all my debugging. I found several projects that enable "mixed-mode" debugging in Eclipse and include support for single stepping between Java and native code.

不幸的是,一个声称是预发布质量,另一个目前没有维护.是否有任何插件以可靠的方式将混合模式调试功能引入 Eclipse,还是我应该继续使用两个单独的调试器?

Unfortunately, one claims to be pre-release quality and the other is currently unmaintained. Are there any plug-ins that bring mixed mode debugging functionality to Eclipse in a reliable way or should I continue to use two separate debuggers?

推荐答案

我不认为今天有任何可用的东西可以解决它,但我知道 Doug Schaefer 在他想要的事情清单上占据了很高的位置完成.请密切关注他的博客,了解相关更新.

I don't think there is anything available today which will fix it, but I know that Doug Schaefer has this pretty high on his list of things he wants to get done. Keep an eye on his blog for updates on that.

这篇关于如何使用 Eclipse 调试 JNI 代码(Java & C/C++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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