From 2000a58628b7439d8944539d0be965c93ceb95ac Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 29 Jun 2018 15:59:20 -0700 Subject: [PATCH] Updated Debugging Language Service in VS Code (markdown) --- Debugging-Language-Service-in-VS-Code.md | 28 ++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/Debugging-Language-Service-in-VS-Code.md b/Debugging-Language-Service-in-VS-Code.md index fba195e..b566eec 100644 --- a/Debugging-Language-Service-in-VS-Code.md +++ b/Debugging-Language-Service-in-VS-Code.md @@ -46,19 +46,25 @@ From here, there are different steps for debugging the client- and server-side, 2. Update `launch.json` with an option to attach to the node instance, with sourcemaps from your `built/local` folder. - For VS Code v1.13.1+ and Node v8.0+, this will look like the following: + For VS Code v1.13.1+ and Node v8.0+, your `launch.json` might look like the following: - ```json + ```json5 { - "name": "Attach to TS Server", - "type": "node", - "request": "launch", - "protocol": "inspector", - "port": 5859, - "sourceMaps": true, - "outFiles": ["/path/to/repo/TypeScript/built/local"], - "runtimeArgs": [ - "--inspect=5859" + "version": "0.2.0", + "configurations": [ + // Other configs + { + "name": "Attach to TS Server", + "type": "node", + "request": "launch", + "protocol": "inspector", + "port": 5859, + "sourceMaps": true, + "outFiles": ["/path/to/repo/TypeScript/built/local"], + "runtimeArgs": [ + "--inspect=5859" + ] + } ] } ```