使用JShell进行调试 [英] Debugging with JShell

查看:99
本文介绍了使用JShell进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在JShell中编写了Java方法,现在我想对其进行调试。我想设置断点或至少逐行执行。 JShell是否具有这些调试功能?

I write a Java method in JShell and now I want to debug it. I would like to set breakpoints or at least step through an execution line-by-line. Does JShell have these debugging abilities?

推荐答案

只是从 JEP:Java Shell(读-评估-打印循环)本身, 非目标
状态:

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


图形界面和调试器支持超出了范围。 JShell
API旨在允许IDE和其他工具(
)具有JShell功能,而 jshell 工具并非旨在成为IDE

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.

这篇关于使用JShell进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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