Skip to content

Commit

Permalink
Update How to debug TypeScript in VS Code.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangguanghuib authored Oct 20, 2023
1 parent 4c9b9c2 commit 3cd9e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions How to debug TypeScript in VS Code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<img width="976" alt="image" src="https://github.com/zhangguanghuib/acwing/assets/14832260/60602246-edf9-4cfe-a45a-5d03c7b8e267"><br/>
Step 6. create launch.json<br/>
```ps
"preLaunchTask": "tsc: build - tsconfig.json",
```
<img width="598" alt="image" src="https://github.com/zhangguanghuib/acwing/assets/14832260/6c5423ef-16a6-42fb-ab7e-d955e0a1a678"><br/>
Step 7. Create src folder, and then create a TS file in it,
<img width="845" alt="image" src="https://github.com/zhangguanghuib/acwing/assets/14832260/6647e7ea-ae3b-45a9-bd58-d0bef0cd22d5"><br/>
Expand Down

0 comments on commit 3cd9e67

Please sign in to comment.