mirror of https://github.com/CesiumGS/cesium.git
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Launch Server",
|
|
"cwd": "${workspaceFolder}",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run-script", "start"],
|
|
"noDebug": true,
|
|
"serverReadyAction":{
|
|
"action": "startDebugging",
|
|
"name": "Launch in Chrome",
|
|
"pattern": "Cesium development server running locally."
|
|
}
|
|
},
|
|
{
|
|
"name": "Launch in Chrome",
|
|
"request": "launch",
|
|
"type": "chrome",
|
|
"url": "http://localhost:8080",
|
|
"webRoot": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"request": "attach",
|
|
"name": "Attach to Karma",
|
|
"type": "chrome",
|
|
"port": 9333, // This is the remote debugging port specified in karma.conf.cjs
|
|
"webRoot": "${workspaceFolder}",
|
|
"timeout": 60000
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Launch Test Suite",
|
|
"cwd": "${workspaceFolder}",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "test", "--", "--includeName", "${fileDirnameBasename}${/}${fileBasenameNoExtension}", "--debug"],
|
|
"console": "integratedTerminal"
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Launch Test Suite and Debug in VSCode",
|
|
"configurations": [
|
|
"Launch Test Suite",
|
|
"Attach to Karma"
|
|
]
|
|
}
|
|
]
|
|
}
|