简体   繁体   English

Nodejs内置调试器显示空白页面

[英]Nodejs built-in debugger shows blank page

I am running node v6.9.1 on OS X. 我在OS X上运行节点v6.9.1。

I am running a script using sudo node --inspect <script name> , as described in the documentation . 我正在使用sudo node --inspect <script name>运行脚本,如文档中所述。

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. 我试过禁用chrome中的所有扩展程序。

No errors are shown. 没有显示错误。

Has anyone seen this issue? 有没有人见过这个问题? Would love to be able to debug. 很想能够调试。

Problem was with my localhost being mapped to a different ip. 问题在于我的localhost被映射到不同的ip。 The url given by node when using --inspect use a localhost. 使用--inspect时节点给出的url使用localhost。 When I manually switched it out with the proper address, the inspector worked. 当我用适当的地址手动将其关闭时,检查员工作了。

Hope this helps someone who runs into the same problem 希望这有助于遇到同样问题的人

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM