在IntelliJ中的库jar中设置断点 [英] Set a breakpoint inside a library jar in IntelliJ

查看:850
本文介绍了在IntelliJ中的库jar中设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在添加到我的Griffon项目的第三方库中的方法中设置断点。在调试期间,断点标记为X,工具提示通知我没有找到可执行代码。我也尝试在我的源代码调用之前设置断点并插入,但是这也未能进入库源。

I am trying to set a breakpoint inside a method from a 3rd party library added to my Griffon project. During debug, the breakpoint becomes marked with an X, with the tooltip informing me that "no executable code was found". I've also tried setting the breakpoint just before the method call in my source and stepping in, but this failed to step into the library source as well.

我有库附加为带有源目录的jar,并设置为在Project Structure-> Modules-> Dependencies中导出。我正在使用IntelliJ 11。

I have the library attached as jar with a source directory and set to export in Project Structure->Modules->Dependencies. I am using IntelliJ 11.

推荐答案

点击打开的源代码编辑器的边缘似乎对我有用。这不是我第一次尝试。重启似乎清除了它。

Clicking in the margin of the opened source editor seems to work for me. It didn't the first time I tried though. A restart seemed to clear it up.

这篇关于在IntelliJ中的库jar中设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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