vscode debug
vscode debug

vscode debug

Launch

  • runtimeExecutable: 以什么方式运行,比如测试一些带.bin的命令就需要设置,默认是node
  • runtimeArgs: 会将参数传入runtimeExecutable
"runtimeExecutable": "npm",
 "runtimeArgs": ["run-script", "debug"]
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
"runtimeArgs": [
   "${file}"
 ],
  • program: 运行文件的绝对路径
  • args:传给program的参数
  • cwd:在某个目录下启动

— inspect-brk:我们还确保应用程序在第一行停止,因此我们有足够的时间打开检查器

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注