如何在Netbeans中使用-g选项进行编译? [英] How do I compile with -g option in Netbeans?

查看:163
本文介绍了如何在Netbeans中使用-g选项进行编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

调试时,我收到一条警告消息,说明'变量信息不可用 - 编译时没有-g' - 如何设置在netbeans中使用-g进行编译?

When debugging I get an warning message on exception saying 'variable info not available - compiled without -g' - how do I set to compile with -g in netbeans?

谢谢

推荐答案

据我所知你的使用调试信息编译自己的代码。但是,Java运行时库不是

As far as I know your own code is compiled with debug information. The Java runtime library, however, isn't.

请仔细检查您看到此消息的位置是否在您自己的代码中不是运行时库。

Please double check that the location you see this message, is in your own code and not the runtime library.

这篇关于如何在Netbeans中使用-g选项进行编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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