Eclipse调试 - 线:不可用 [英] Eclipse debug - line: not available

查看:125
本文介绍了Eclipse调试 - 线:不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎没有找到任何东西在谷歌告诉我为什么这可能是什么和分辨率是什么。我正在逐步通过第三方代码(我有源代码),并希望看到当前行被执行...

I can't seem to find anything on google telling me why this might be and what the resolution is. I'm Stepping through third party code (that I have the source for) and would really like to see the current line being executed...

查看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, are there performance implications? Do I need to recompile the jar myself to attach the missing debug info (if possible)?

谢谢!

推荐答案


查看javac的编译标志,看到-g:none标志。如果这个标志被设置,这是否足以解释为什么我不能看到行号?

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?

也许图书馆的作者想让他的罐子尽可能的小。如果编译时没有 -g:none 开关,那么性能将不会很大。

Perhaps the author of the library wanted to make his jar as small as possible. The performance won't be very different if you compile without the -g:none switch.

这篇关于Eclipse调试 - 线:不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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