美文网首页
node中进行debug

node中进行debug

作者: carons | 来源:发表于2017-07-19 17:48 被阅读0次

如果js文件不能在node下运行debug,执行以下步骤

1.在当前项目下打开终端,运行命令"node --debug-brk Web storm"然后ctrl+c

node中进行debug

2.在需要debug的文件中,点击右上角带有js的图标,进入edit configurations界面

node中进行debug

3.进入后点击左上角+,选择node.js remote debug

node中进行debug

4.编辑name以及确保port和步骤1中得到的port一致,点击apply然后点击ok

node中进行debug

5.再在终端运行命令" node --debug-brk "需要debug的js文件名

node中进行debug

6.在需要debug的js页面设置断点,然后右击运行debug即可

node中进行debug

7.完成后出现如下图

node中进行debug

相关文章

  • node中进行debug

    如果js文件不能在node下运行debug,执行以下步骤 1.在当前项目下打开终端,运行命令"node --deb...

  • 调试 Node.js 程序

    WebStorm Debug + 断点 vscode Debug + 断点 命令行和 Chrome 调试 Node...

  • node.js的控制台console

    node.js的console控制台和debug可以辅助开发和定位bug,在node.js中,console代表控...

  • gulp任务调试方法

    1.sudo npm install -g node-inspector 2.Node-debug xx.js

  • learn-node

    node 版本号 node -v node 回车 进入node模式 可以进行运算 node 模式中 可输入...

  • 第十周-Node.js(续)

    书籍 《深入理解Node.js:核心思想与源码分析》 Debug 《Node.js 调试指南》 Node 案发现场...

  • NodeJS的调试

    1. 基于Chrome浏览器的调试 首先,需要安装node-inspector模块 使用$ node-debug ...

  • 调试node

    使用node-inspector 安装 使用 启动工具 启动应用(加上--debug参数)

  • vscode中调试ts

    ts-node命令 一、新建ts文件二、debug 添加配置 三、当前目录添加局部 ts ts-node 自动编译...

  • vscode debug node应用

    参考链接 https://code.visualstudio.com/Docs/editor/debugging...

网友评论

      本文标题:node中进行debug

      本文链接:https://www.haomeiwen.com/subject/lcxrkxtx.html