top | item 8906759

(no title)

hnriot | 11 years ago

it's hardly java's fault he's looking at a stack frame and not seeing the variables that belong to a different stack. This is simply a matter of selecting a frame prior to the forEach.

discuss

order

iwince|11 years ago

Eclipse's debugger can be configured to show a refined output. The controls are in the upper right in the Debug Perspective. Programmers who make applications are not programmers who write IDE's. If I'd noticed this I don't know if I'd recognized it or dug into it more to understand it but a snarky comment like the one I replied to is not appropriate or helpful.

chris_wot|11 years ago

I disagree. The lambda expression allows him to use variables outside of the stack frame, why shouldn't the debugger also be able to show those same variables?

jdmichal|11 years ago

The single example does not show a lambda that requires variable capture.