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

查看:31
本文介绍了您在哪里配置 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

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

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

推荐答案

选择菜单:Window > Preferences > Java > Compiler

Select the menu: Window > Preferences > Java > Compiler

您会在类文件生成"标题下找到几个复选框.

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

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

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