'It is difficult to understand the debugging step over of eclipse

Why can't the variable hallLamp be displayed?



Solution 1:[1]

Always add breakpoint on a next line after initialization of an object. In your case either step over to the next line or add breakpoint at line number 22.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhishek Shinde