immediate window

半腔热情 提交于 2019-11-29 00:37:43

问题


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

thanks


回答1:


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.




回答2:


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:

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

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.



来源:https://stackoverflow.com/questions/2014068/immediate-window

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