有没有好方法将 Equinox 源添加到 Eclipse 以帮助调试 OSGi 包?

发布于 2024-08-31 13:53:46 字数 307 浏览 8 评论 0原文

我正在对一堆混乱的 JNI 代码和 DLL 进行撞击,我们正试图将它们塞进 OSGi 包中。从系统中获取良好的调试信息特别困难,我花了太多时间单步执行原始字节代码,试图推断春分点内部发生了什么——当我真的不在乎时——我只是不明白有用的错误。如果我可以轻松访问调试器中的Equinox 源以了解加载内容的原因和位置,那就太好了。

下载所有源代码并构建我自己的 Eclipse 的简单答案将是一种解决方案,但感觉非常沉重。是否有我可以访问并安装的“抓取源”存储库或类似的东西?

只是感觉应该有一种更简单的方法来解决这个问题。类似于在另一种情况下使用调试库或安装 SRPM。

I am banging my head against a mess of JNI code and DLLs that we are trying to shoehorn into an OSGi bundle. It has been particularly hard to get good debugging info out of the system and I have spent too much time stepping through raw byte code trying to infer what is happening inside equinox--when I really don't care--I am just not getting useful errors out. It would be great if I could have easy access to the equinox source in the debugger to see why and where it was loading what.

The simple answer of downloading all the source and building my own Eclipse would be one solution, but it feels very heavy handed. Is there a "grab source" repo I could go to and install from or some such thing?

It just feels like there should be an easier way to go about this. Something akin to using the debug libraries or installing the SRPM in another situation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹雪碎 2024-09-07 13:53:46

Eclipse 默认附带源代码,在插件文件夹中查找 *.source,可能您只需要在调试器中设置源路径即可。

如果您实际上没有源代码,获取它在一定程度上取决于您运行的 eclipse 版本。对于 Galileo 或 Helios,您可以尝试转到帮助 ->安装新软件。使用 Galileo(或 Helios)存储库。取消选中“按类别对项目进行分组”,在过滤器类型“来源”中。特别是,大部分Equinox 源代码都位于“Eclipse RCP 插件开发人员资源”中。

或者,您也可以访问 Equinox 下载页面 并获取 Equinox SDK 具有来源。

Eclipse ships with source by default, look for *.source in the plugins folder, it could be you just need to set up the source path in the debugger.

If you actually don't have the source, getting it will depend a little on what version of eclipse you are running. For Galileo or Helios you can try going to Help -> Install New Software. Work with the Galileo (or Helios) repository. Uncheck "Group items by category", in the filter type "source". In particular, most of the equinox source will be in "Eclipse RCP Plug-in Developer Resources".

Alternatively you can also go to the Equinox download page and get the Equinox SDK which has the source.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文