Skip to content

Commit

Permalink
document how to debug TypeScript in vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Jun 19, 2024
1 parent d353156 commit 04a3763
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/docs/contribute/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ rust-lldb -- ./target/release/oxlint
```

Once it launches, press `r` for running the program.

## Debug TypeScript in VSCode

According to their [debugging guide](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#debugging-the-tests), in the TypeScript repository:

- rename `.vscode/launch.template.json` to `launch.json`
- set a breakpoint somewhere in TypeScript's source code
- create a `test.ts` or open any test file of interest
- From the menu "Run - Debugging", or press F5

0 comments on commit 04a3763

Please sign in to comment.