zoukankan      html  css  js  c++  java
  • node-inspector调试工具

    1.  npm或者cnpm 安装node-inspector

         命令:  cnpm install -g node-inspector     (说明: 全局安装)

    2.  使用node-inspector命令启动该调试工具

         命令: node-inspector   (说明:重新开个终端执行该命令,会得到 http://127.0.0.1:8080/?port=5858这哥们,

                                               8080: 是指定node-inspector的web端口, 5858: 是指定node-inspector的调试端口, 可以在node-inspector安装目录下的config.json文件中

                                               修改web端口和调试端口)

    3.  进入项目文件夹下,输入以下其中任何一个命令

          命令: node --debug-brk[=port] xxx.js    (说明: 这句话来自node.js权威指南中的,命令不可用)

          或者这个命令:  node --debug-brk xxx.js  (说明:xxx.js是你想要调试的js文件代码)

  • 相关阅读:
    python--异常处理
    Codeforces 1499D
    Codeforces 1263E
    Codeforces 1493D
    Codeforces 1492D
    Codeforces 1490G
    Codeforces 1487E
    Codeforces 1485D
    Codeforces 1485C
    P6917 [ICPC2016 WF]Balanced Diet
  • 原文地址:https://www.cnblogs.com/sorrowx/p/7044605.html
Copyright © 2011-2022 走看看