summary refs log tree commit diff
path: root/.vscode
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:15 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-01-30 19:58:15 +0100
commit76000f8fa11dde2f67efdb22a87c4644ea49f9eb (patch)
tree67664d9c616068113b8fef6704b005726be8f0a7 /.vscode
parent:sparkles: Database (diff)
downloadserver-76000f8fa11dde2f67efdb22a87c4644ea49f9eb.tar.xz
:sparkles: Util
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json17
1 files changed, 14 insertions, 3 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index e4326afa..9d3bb449 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -8,8 +8,17 @@
 			"sourceMaps": true,
 			"type": "node",
 			"request": "launch",
-			"name": "Launch Program",
-			"program": "${workspaceFolder}/dist/test/db_test.js",
+			"name": "Launch Server",
+			"program": "${workspaceFolder}/dist/index.js",
+			"preLaunchTask": "tsc: build - tsconfig.json",
+			"outFiles": ["${workspaceFolder}/dist/**/*.js"]
+		},
+		{
+			"sourceMaps": true,
+			"type": "node",
+			"request": "launch",
+			"name": "Test",
+			"program": "${workspaceFolder}/dist/test/mongo_test.js",
 			"preLaunchTask": "tsc: build - tsconfig.json",
 			"outFiles": ["${workspaceFolder}/dist/**/*.js"]
 		},
@@ -18,7 +27,9 @@
 			"program": "${file}",
 			"request": "launch",
 			"skipFiles": ["<node_internals>/**"],
-			"type": "node"
+			"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
+			"type": "node",
+			"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"]
 		}
 	]
 }