What does the javac debugging information option -g:vars do?

前端 未结 2 1414
梦毁少年i
梦毁少年i 2020-12-06 09:35

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

Doing some tests, there is no addition information (

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 10:28

    From the javadocs:

    -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.

提交回复
热议问题