From 3cd9e679289d329a62cc8425045b8219419adea5 Mon Sep 17 00:00:00 2001 From: zhangguanghuib Date: Fri, 20 Oct 2023 21:54:00 +0800 Subject: [PATCH] Update How to debug TypeScript in VS Code.md --- How to debug TypeScript in VS Code.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/How to debug TypeScript in VS Code.md b/How to debug TypeScript in VS Code.md index 793ba08..05f35fc 100644 --- a/How to debug TypeScript in VS Code.md +++ b/How to debug TypeScript in VS Code.md @@ -9,6 +9,9 @@ Step 4: Run npm init to create package.json, just press enter to use default va Step 5: Run tsc --init to tsconfig.json, and make sure sourceMap is true, and also specify an outDir to store the js file. image
Step 6. create launch.json
+```ps + "preLaunchTask": "tsc: build - tsconfig.json", +``` image
Step 7. Create src folder, and then create a TS file in it, image