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

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

问题描述

尽管我可以使用Eclipse JDT调试器来调试我的应用程序,用于Java代码和GDB for C代码,但我宁可使用单个工具进行所有调试。我发现了几个在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.

  • Intel's Integrated Debugger for Java/JNI Environments
  • Mariot Chauvin's Summer of Code Project: Support Seamless Debugging between JDT & CDT

不幸的是,一个声称是预发布质量,另一个声称目前未被保留。
有没有任何可以以可靠的方式将混合模式调试功能引入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天全站免登陆