How to use Eclipse's Display View for Debug?

后端 未结 5 1747
猫巷女王i
猫巷女王i 2020-12-13 12:49

At the link below it explains that the \"display view allows you to manipulate live code in a scrapbook type fashion (see Figure 8). To manipulate a variable, simply type t

5条回答
  •  旧时难觅i
    2020-12-13 13:31

    I think this powerful feature should be used way more often.

    1. In the debug perspective: Window -> Show View -> (search for) Display
    2. Put a break point in your code
    3. Trigger the breakpoint by executing this code
    4. Once on the breakpoint go to the Display view
    5. Write some code like myObject.getSomeData();, you can autocomplete (Ctrl+Space)
    6. Select the expression (code) you want to evaluate
    7. Use one of the many display view buttons which should now be enabled
    8. Save some precious time...

    Not sure why this view is not there by default, it should be !

提交回复
热议问题