VSCode:无法在初始启动模块外设置断点

时间:2018-06-06 18:25:25

标签: node.js visual-studio-code parsoid

我已从其source repo安装了节点项目Parsoid

我用VSCode打开了项目根目录,然后添加了一个基本的passthru config.yaml

worker_heartbeat_timeout: 300000

logging:
    level: debug

services:
  - module: lib/index.js
    entrypoint: apiServiceWorker
    conf:

        # Configure Parsoid to point to your MediaWiki instances.
        mwApis:
        - # This is the only required parameter,
          # the URL of you MediaWiki API endpoint.
          uri: 'https://en.wikipedia.org/w/api.php'
          domain: 'en.wikipedia.org'  # optional

我可以使用以下命令运行该应用程序:

http://localhost:8000/en.wikipedia.org/v3/page/html/Apple

我现在准备用调试器检查代码了。 我添加了launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}/bin/server.js"
        }
    ]
}

当我使用调试器启动时,我添加到bin/server.js的断点被识别。但是,此目录之外的任何内容都将被忽略(声明它无法验证其他断点)。

Only initial launch module has its breakpoint bounded.

这些断点已设置但未受限制。我应该在配置文件中修改什么才能使它们受限?

0 个答案:

没有答案