增加vscode本地启动debug的脚本
This commit is contained in:
parent
1f1a942eba
commit
570eb8a214
38
.vscode/launch.json
vendored
38
.vscode/launch.json
vendored
@ -4,17 +4,31 @@
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"address": "192.168.100.24",
|
||||
"localRoot": "${workspaceFolder}",
|
||||
"name": "192.168.100.24",
|
||||
"port": 9229,
|
||||
"remoteRoot": "Absolute path to the remote directory containing the program",
|
||||
"request": "attach",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"type": "pwa-node"
|
||||
}
|
||||
{
|
||||
"name": "Local Svr",
|
||||
"request": "launch",
|
||||
"runtimeArgs": [
|
||||
"run-script",
|
||||
"debug"
|
||||
],
|
||||
"runtimeExecutable": "npm",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"type": "pwa-node"
|
||||
},
|
||||
|
||||
{
|
||||
"address": "192.168.100.24",
|
||||
"localRoot": "${workspaceFolder}",
|
||||
"name": "192.168.100.24",
|
||||
"port": 9229,
|
||||
"remoteRoot": "Absolute path to the remote directory containing the program",
|
||||
"request": "attach",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"type": "pwa-node"
|
||||
}
|
||||
]
|
||||
}
|
@ -6,6 +6,7 @@
|
||||
"typings": "src/global.d.ts",
|
||||
"scripts": {
|
||||
"start": "ts-node-dev --inspect --files src/index.ts",
|
||||
"debug": "node --require ts-node/register --inspect src/index.ts",
|
||||
"loadtest": "colyseus-loadtest loadtest/example.ts --room my_room --numClients 3",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user