开发者

immediate window

开发者 https://www.devze.com 2022-12-16 02:09 出处:网络
Is there anyplace in the eclipse ide that I开发者_开发知识库 can enter immediate code while stoped at a breakpoint?

Is there anyplace in the eclipse ide that I开发者_开发知识库 can enter immediate code while stoped at a breakpoint?

thanks


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.


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:

immediate window

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

immediate window

Example:

immediate window


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消