launch.json 944 B

123456789101112131415161718192021
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "client-base-v4", // 启动配置名称
  9. "type": "node", // 调试器类型,我们是 Node.js 环境
  10. "request": "launch", // 请求方式,有 launch(启动) 和 attach(附加) 两种
  11. "cwd": "${workspaceRoot}",
  12. "runtimeExecutable": "npm", // 任务运行工具,'npm', 'mocha', 'gulp' 等
  13. // 启动我们的 egg-bin debug 并默认是 brk
  14. "runtimeArgs": [ "run", "dev"],
  15. // 日志输出到 Terminal,否则启动期的日志看不到
  16. "console": "integratedTerminal",
  17. // 自动 attach 子进程
  18. "autoAttachChildProcesses": true
  19. }
  20. ]
  21. }