I'm using node-inspector. I have run debugger, and the console is paused where the debugger has started:
> var z = 1
undefined
> z
ReferenceError: z is not defined
Setting globals seems to work:
> a = 1
1
> a
1
Is node-inspector broken or an I doing something wrong?
I am using node-inspector 0.5, which is the latest at the time I'm writing this.
Disclaimer: I am a maintainer of Node Inspector.
This is a missing feature of Node Inspector.
Local variables are preserved in Chrome Developer Tools, thus it should be possible to get this working in Node Inspector too.
Please fill an issue in project's issue tracker.
Screenshot of Chrome Developer Tools: