Breaks when stepping into files `require()`d after load #44

Closed
s4y opened this Issue May 30, 2011 · 1 comment

Projects

None yet

3 participants

@s4y
s4y commented May 30, 2011

If I start node with, say, --debug-brk, and step past some require()s at the top of the file in node-inspector, the newly-in-scope files aren’t loaded. Later, if I step into a function loaded from one of these requires, I lose the program counter and the debugger controls become disabled; there’s nothing more I can do.

Has anyone run into a workaround for this kind of situation? Some way to make node-inspector load more files?

@ligaard
ligaard commented Jul 21, 2011

I see the same thing. I have noticed that if I stop node-inspector and then starts it again (so it reattaches to the node process I was debugging), then it shows some other files.

It seems there is some problem with requires :-(

@dannycoates dannycoates added a commit that closed this issue Jul 24, 2011
@dannycoates dannycoates load new script on break if missing.
Refreshing the page will also retrieve all loaded scripts.
Closes #44
ca61c4d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment