immediate window

前端 未结 2 1642
春和景丽
春和景丽 2020-12-28 14:34

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

thanks

2条回答
  •  被撕碎了的回忆
    2020-12-28 14:53

    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.

提交回复
热议问题