gpt4 book ai didi

node.js - 即使在非常简单的设置中也无法命中 WebStorm 中的任何断点

转载 作者:太空宇宙 更新时间:2023-11-03 22:11:07 24 4
gpt4 key购买 nike

即使在极其简单的设置中,我也无法在代码中设置任何断点。请参阅随附的屏幕截图。点击“调试“main.js””后,执行不会中断。

enter image description here

最佳答案

由于您使用的是 Node v7.x ...目前的解决方案是:

  • 将 Node 降级到 v6.x
  • 或 WebStorm 升级到旧版本。

来自this official comment :

Are you using Node 7.x? It's a known issue unfortunately, see https://youtrack.jetbrains.com/issue/WEB-24629. Hidden option for turning dev tools protocol support off (js.debugger.node.use.inspect=false) will be included in next 2016.3 update - see https://youtrack.jetbrains.com/issue/WEB-24629#comment=27-1809582.

For now the only workaround is downgrading Node.js to 6.x :( Full Node 7 support (using v8 inspector) will be available in 2017.1

<小时/>

您还可以尝试最新的 EAP 版本 2017.1 -- https://confluence.jetbrains.com/display/WI/WebStorm+EAP -- 它可能已经有可用的修复程序(抱歉,我自己没有使用 NodeJS,所以无法确认)。

关于node.js - 即使在非常简单的设置中也无法命中 WebStorm 中的任何断点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41594632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com