Skip to content

Commit 04a3763

Browse files
committed
document how to debug TypeScript in vscode
closes oxc-project/oxc#3732
1 parent d353156 commit 04a3763

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/docs/contribute/debugging.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ rust-lldb -- ./target/release/oxlint
3131
```
3232

3333
Once it launches, press `r` for running the program.
34+
35+
## Debug TypeScript in VSCode
36+
37+
According to their [debugging guide](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#debugging-the-tests), in the TypeScript repository:
38+
39+
- rename `.vscode/launch.template.json` to `launch.json`
40+
- set a breakpoint somewhere in TypeScript's source code
41+
- create a `test.ts` or open any test file of interest
42+
- From the menu "Run - Debugging", or press F5

0 commit comments

Comments
 (0)