Search code examples
node.jsdebuggingnode-debugger

Nodejs built-in debugger shows blank page


I am running node v6.9.1 on OS X.

I am running a script using sudo node --inspect <script name>, as described in the documentation.

Runs correctly giving message telling me to go to a page to debug.

When I visit this page, I get the frames for the debugger, but no code is displayed.

I have tried disabling all extensions in chrome.

No errors are shown.

Has anyone seen this issue? Would love to be able to debug.


Solution

  • Problem was with my localhost being mapped to a different ip. The url given by node when using --inspect use a localhost. When I manually switched it out with the proper address, the inspector worked.

    Hope this helps someone who runs into the same problem