检查打开的“结构化堆栈”文件

时间:2019-05-21 16:43:53

标签: node.js visual-studio-code babel pm2

我正在尝试使用VSCode调试代码(docker + node),当我连接到调试器时,总是打开一个名称为“结构化堆栈”的未知文件,而不是带有断点的文件。

launch.json

{
  "configurations": [
    {
      "type": "node",
      "request": "attach",
      "name": "Docker: Attach to Node",
      "localRoot": "${workspaceFolder}",
      "restart": true,
      "remoteRoot": "/usr/src/app",
      "protocol": "inspector",
      "skipFiles": [
        "/node_modules/**/*.js",
        "/usr/src/app/node_modules/**/*.js",
        "<node_internals>/**/*.js",
        "<eval>/**/*.js"
      ]
    }
  ]
}

这个“结构化堆栈”文件是正常的吗?

我正在使用PM2 +通天塔

pm2.json

{
  "name": "graph",
  "script": "./src/app.js",
  "interpreter": "./node_modules/.bin/babel-node",
  "watch": ["src"],
  "ignore_watch": ["node_modules"],
  "args": ["--color"],
  "node_args": ["--inspect=0.0.0.0"]
}

0 个答案:

没有答案