Improve vscode debugging
This commit is contained in:
parent
f8bd110928
commit
6e448b54dd
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"ms-dotnettools.csharp"
|
||||||
|
]
|
||||||
|
}
|
30
.vscode/launch.json
vendored
30
.vscode/launch.json
vendored
@ -2,22 +2,36 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
|
"name": "Launcher",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"console": "externalTerminal",
|
||||||
|
"preLaunchTask": "build: launcher",
|
||||||
|
"program": "",
|
||||||
|
"linux": {
|
||||||
|
"program": "${workspaceFolder}/Launcher/bin/Debug/net6.0/linux-x64/Launcher.dll",
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"program": "${workspaceFolder}/Launcher/bin/Debug/net6.0/osx-x64/Launcher.dll",
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"program": "${workspaceFolder}/Launcher/bin/Debug/net6.0/win-x64/Launcher.dll",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Server",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Server",
|
"cwd": "${workspaceFolder}",
|
||||||
|
"preLaunchTask": "build: server",
|
||||||
|
"console": "externalTerminal",
|
||||||
"runtimeExecutable": "npm",
|
"runtimeExecutable": "npm",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
"--prefix",
|
"--prefix",
|
||||||
"Server",
|
"Server",
|
||||||
"run-script",
|
"run-script",
|
||||||
"debug"
|
"debug"
|
||||||
],
|
|
||||||
"cwd": "${workspaceFolder}",
|
|
||||||
"outFiles": [
|
|
||||||
"${workspaceFolder}/out/**/*.js"
|
|
||||||
],
|
|
||||||
"skipFiles": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build:exe": "npx nexe -t x64-14.15.3 -i obj/server.js -o bin/Server.exe",
|
"build:exe": "npx nexe -t x64-14.15.3 -i obj/server.js -o bin/Server.exe",
|
||||||
"build:icon": "cd node_modules/rcedit/bin && rcedit-x64.exe ../../../bin/Server.exe --set-icon ../../../assets/images/favicon.ico",
|
"build:icon": "cd node_modules/rcedit/bin && rcedit-x64.exe ../../../bin/Server.exe --set-icon ../../../assets/images/favicon.ico",
|
||||||
"build": "npm run release:any && npm run build:icon",
|
"build": "npm run release:any && npm run build:icon",
|
||||||
"debug": "npm run release:any && node --trace-warnings obj/server.js",
|
"debug": "node --trace-warnings obj/server.js",
|
||||||
"lint:fix": "npx eslint --fix \"./src/**/*.ts\"",
|
"lint:fix": "npx eslint --fix \"./src/**/*.ts\"",
|
||||||
"lint:check": "npx eslint \"./src/**/*.ts\"",
|
"lint:check": "npx eslint \"./src/**/*.ts\"",
|
||||||
"release:any": "npm run build:ts && npm run build:babel && npm run build:bundle && npm run build:exe"
|
"release:any": "npm run build:ts && npm run build:babel && npm run build:bundle && npm run build:exe"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user