Webstorm调试器断点在Node.js中不起作用 [英] Webstorm debugger breakpoints doesn't work in nodejs

查看:121
本文介绍了Webstorm调试器断点在Node.js中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试设置断点并调试文件时,调试器仅在不停止断点的情况下运行应用程序.这是我的代码:

When I try to set a breakpoint and debug the file, the debugger just run the app without stopping at breakpoints. This is my code:

console.log('123');

这是我的输出:

/usr/bin/node --debug-brk=39765 --nolazy index.js
debugger listening on port 39765
123

Process finished with exit code 0

有人知道可能是什么问题吗?

Does anyone has an idea what could be the problem?

推荐答案

尝试在WebStorm注册表中禁用 js.debugger.v8.use.any.breakpoint .

Try to disable js.debugger.v8.use.any.breakpoint in WebStorm registry.

您可以通过帮助-> 查找操作

在其中输入注册表.

对我来说,禁用此选项使调试与节点相关的任何东西很多更快,更可预测.

For me disabling this option made debugging anything node-related much faster and much more predictable.

这篇关于Webstorm调试器断点在Node.js中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆