Debugging with JShell

限于喜欢 提交于 2019-12-05 03:48:16

Just to clarify further, from the JEP: The Java Shell (Read-Eval-Print Loop) itself, the Non-Goals states :

Out of scope are graphical interfaces and debugger support. The JShell API is intended to allow JShell functionality in IDEs and other tools, but the jshell tool is not intended to be an IDE.

There is some undocumented /debug command (Jshell in Java 11). After /help /debug command you can see:

jshell> /help /debug
  Display debugging information for the jshell tool implementation.
  0: Debugging off
  r: Tool level debugging on
  g: General debugging on
  f: File manager debugging on
  c: Completion analysis debugging on
  d: Dependency debugging on
  e: Event debugging on

Notice, if you write /help only there is no information about /debug command.

Out of Jshell there is jdb tool for debug.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!