You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/.vscode/launch.json

73 lines
2.3 KiB

{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome调试",
"type": "chrome",
"request": "launch",
"disableNetworkCache": false,
"url": "http://localhost:7778",
"webRoot": "${workspaceFolder}",
"skipFiles": [
"*.dll.js" //跳过.js文件的调试,避免调试堆栈进入js文件
]
},
{
"name": "Chrome调试(使用生产api)",
"type": "chrome",
"request": "launch",
"disableNetworkCache": false,
"url": "http://localhost:7778/?server=api",
"webRoot": "${workspaceFolder}",
"skipFiles": [
"*.dll.js" //跳过.js文件的调试,避免调试堆栈进入js文件
]
},
//Ref: https://github.com/Microsoft/vscode-recipes/blob/master/debugging-jest-tests/.vscode/launch.json
{
"name": "Jest 所有文件",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"--runInBand"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js"
]
},
{
"name": "Jest 当前文件",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${fileBasename}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"smartStep": false,
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js"
]
},
{
"name": "运行 当前TS文件",
"type": "node",
"request": "launch",
"args": [
"${file}"
],
"runtimeArgs": [
"-r",
"ts-node/register"
],
"cwd": "${workspaceFolder}",
"protocol": "inspector",
"internalConsoleOptions": "openOnSessionStart"
}
]
}