立即窗口

发布于 2024-08-16 23:42:46 字数 54 浏览 3 评论 0原文

eclipse ide 中是否有任何地方可以在断点处停止时输入立即代码?

谢谢

Is there anyplace in the eclipse ide that I can enter immediate code while stoped at a breakpoint?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

水溶 2024-08-23 23:42:46

它在 Eclipse 中称为显示窗口。菜单项:窗口/显示视图/显示

要运行命令,您需要键入然后选择显示窗口中的文本,然后选择窗口中的两个 J 图标之一。

It's called the Display window in Eclipse. Menu Item: Window/Show View/Display

To run command you need to type then select the text in the display window and select one of the two J icons in the window.

明月松间行 2024-08-23 23:42:46

注意:正如使用 Eclipse 平台调试中提到的,您可以使用 Display查看剪贴簿您的实时代码

意思是,当您有实时调试会话:

live debug session

时,您可以在显示器中运行/调试某些表达式或代码视图:

显示视图

示例

Example


请参阅我最喜欢的 Eclipse 视图

  • 要执行代码并显示返回值,请按带有“J”的按钮:
  • 如果您只想执行一些不返回值的代码,请按下带有箭头“>”和“J”的按钮:

标准输出将打印到控制台视图。

Note: as mentioned in Debugging with the Eclipse Platform, you can use the Display View to scrapbook your live code.

Meaning, while you have a live debug session:

live debug session

, you can run/debug some expressions or code in a Display view:

display view

Example:

Example


See My favorite Eclipse view

  • To execute the code and display the returned value, push the button with a "J":
  • If you just want to execute some code that doesn't return a value, push the button with an arrow ">" and a "J":

The standard output will be printed to the Console view.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文