In eclipse, while debugging, how do I access the interactive-top-level (a.ka. the “display console”)?

前端 未结 2 699
耶瑟儿~
耶瑟儿~ 2020-12-22 23:05

In most programming languages I\'ve used, when debugging, when I hit a breakpoint, I have the ability to execute arbitrary code (whatever I type into the console after the b

2条回答
  •  庸人自扰
    2020-12-22 23:37

    You can use the Display view to execute arbitrary code, access it via:

    window->Show View->Display

    then type the code you want to execute (you can use CTRL+SPACE for autocomplete).

    to execute the code, select it then:

    CTRL+SHIFT+D

    That should execute the code based on the breakpoint you've hit.

    Note: As of 2018, Display View has been renamed to Debug Shell View.

提交回复
热议问题