package.json 文件添加 debug,指定端口号,形如

--debug 5858


"scripts": {
"dev": "egg-bin dev --port 6001 --debug 5858",
然后
run-> edit configurations,点+,选择 node.js Remote Debug, 在打开的对话框,设置之前的端口号+1,比如之前设置5858, 这里设置5959
勾选住single distance only, 如下图

webstorm 调试node

 

然后打断点,起服务

相关文章:

  • 2021-12-25
  • 2021-10-15
  • 2021-11-30
  • 2021-10-30
  • 2021-09-04
  • 2021-05-19
  • 2021-08-09
  • 2021-05-22
猜你喜欢
  • 2021-10-23
  • 2021-12-10
  • 2021-09-14
  • 2021-12-11
  • 2021-06-20
  • 2021-05-08
  • 2021-06-28
相关资源
相似解决方案