java - Eclipse 调试 - 行 : not available

标签 java eclipse debugging

我似乎无法在谷歌上找到任何东西告诉我为什么会这样以及解决方法是什么。我正在单步执行第三方代码(我有源代码)并且真的很想看到正在执行的当前行...

查看 javac 编译标志,我看到了 -g:none 标志。如果设置了这个标志,这是否足以解释为什么我看不到行号?如果是这样,为什么有人会这样做,对性能有影响吗?我是否需要自己重新编译 jar 以附加丢失的调试信息(如果可能)?

谢谢!

最佳答案

Looking at javac compile flags, I see the -g:none flag. If this flag is set, would this be enough to explain why I'm not able to see line numbers?

是的,就是这个原因。

If so, why would someone do this?

也许图书馆的作者想让他的 jar 尽可能小。如果不使用 -g:none 开关进行编译,性能不会有太大差异。

关于java - Eclipse 调试 - 行 : not available,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2885526/

相关文章:

java - 继承不起作用

c++ - Eclipse CDT - 预编译 header

java - 开发 Google App Engine 应用程序时无法在本地测试中使用相对路径访问文件

c - 在 Visual Studio Code 中调试 C 程序

java - Play-Framework : ClassCastException occured : java. util.LinkedHashMap 无法转换为 models.Systems

java - Spring 事务原子性到底意味着什么?

java - Android ListView 未填充数据

eclipse - 在 Eclipse 中搜索 JavaDoc

c++ - 使用 unordered_map 方法在 C++ 中查找最(多个)常用词

delphi - 在评估/修改 (Ctrl+F7) 窗口中调用辅助函数?