Skip to content

Commit 418995c

Browse files
committed
Clarifications for debugging tsserver
1 parent 3edd394 commit 418995c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Debugging-Language-Service-in-VS-Code.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TSS_DEBUG=5667 code --user-data-dir ~/.vscode-debug/
2424

2525
This will open VS Code as a separate app from your current one, it may have some of your extensions but not your settings. As long as you consistently use the above command, then you can save settings for debugging between sessions.
2626

27-
Optionally you can use `TSS_DEBUG_BRK` to have the TSServer wait for your debugger before launching.
27+
Optionally you can use `TSS_DEBUG_BRK` (i.e. `TSS_DEBUG_BRK=5567`) to have the TSServer wait for your debugger before launching.
2828

2929
This will launch a debug TSServer which you can connect to from inside the TypeScript codebase. Open up the TypeScript codebase, and look at the debugging panel. At the top, look to see if there is a drop-down item for debugging by Attaching to VS Code TSServer then select that.
3030

@@ -37,14 +37,16 @@ That should have you connected to the TSServer for the debugging app version of
3737
## Using Stable VS Code with Development TSServer
3838

3939

40-
VS Code chooses where to launch TSServer from via the setting: `typescript.tsdk`. Continuing from above, if you want to have your TSServer use a local copy of TypeScript then change this setting to:
40+
VS Code chooses where to launch TSServer from via the setting: `typescript.tsdk`. Continuing from above, if you want to have your TSServer use a local copy of TypeScript then change this setting (in `.vscode/settings.json` or your user JSON settings) to:
4141

4242
```json
4343
{
4444
"typescript.tsdk": "/path/to/repo/TypeScript/built/local"
4545
}
4646
```
4747

48+
This version of TypeScript may not be selected automatically; ensure that the above is being used by running the "TypeScript: Select TypeScript Version..." command in the command palette (Ctrl+Shift+P or Cmd+Shift+P).
49+
4850
This is probably enough for most contributors, but if you are doing heavy duty VS Code and TypeScript work, you may want to carry on.
4951

5052
---

0 commit comments

Comments
 (0)