你在哪里配置Eclipse Java编译器(javac)标志? [英] Where do you configure Eclipse Java compiler (javac) flags?

查看:316
本文介绍了你在哪里配置Eclipse Java编译器(javac)标志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如

javac -g ButtMonkey.java

当Eclipse编译Java源时,您在哪里配置-g标志? (使用Ganymede,但我怀疑在以后的版本中发生了变化,所以任何答案都可能有帮助。)

Where do you configure the -g flag when Eclipse compiles Java source? (Using Ganymede but I doubt that has changed in later versions so any answer probably helps.)

我需要的是:


-g

-g

生成所有调试信息,包括局部变量。默认情况下,只生成行号和源文件信息。

Generate all debugging information, including local variables. By default, only line number and source file information is generated.


推荐答案

选择菜单:窗口>首选项> Java>编译器

Select the menu: Window > Preferences > Java > Compiler

您将在Classfile Generation标题下找到几个复选框。

There you will find several check boxes under the heading "Classfile Generation".

这篇关于你在哪里配置Eclipse Java编译器(javac)标志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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