javac调试信息选项-g:vars做什么? [英] What does the javac debugging information option -g:vars do?

查看:219
本文介绍了javac调试信息选项-g:vars做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是javac提供的 -g:vars (本地变量调试信息)选项作为输出。

What exactly the -g:vars (local variable debugging information) option of javac provides as output.

做一些测试,没有添加信息(示例中没有区别-g:source,lines和-g:source,lines,vars。

Doing some tests, there is no addition information (example no difference between -g:source,lines and -g:source,lines,vars.

有些人有这些局部变量调试信息的一个例子?

Does some one have an example of a these local variable debugging information?

推荐答案

从javadocs:


-g
生成所有调试信息,包括本地
变量。默认情况下,只有行
数字和源文件信息是
生成

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

这不会在编译时产生可见的输出,但在运行时用于调试。

This does not produce visible output at compile time but is used in debugging during run time.

这篇关于javac调试信息选项-g:vars做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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