diff --git a/.vscode/launch.json b/.vscode/launch.json index 13e54674..bafbfb52 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,7 +20,7 @@ "name": "Attach to Server", "type": "node", "request": "attach", - "port": 6009, + "port": 6010, "sourceMaps": true, "outFiles": [ "${workspaceRoot}/client/server/**/*.js", diff --git a/client/src/language/languageClient.ts b/client/src/language/languageClient.ts index bffaf3b4..e510f785 100644 --- a/client/src/language/languageClient.ts +++ b/client/src/language/languageClient.ts @@ -35,7 +35,8 @@ const notifyFileRenameChanged = async ( export async function activateLanguageServer (context: ExtensionContext): Promise { const serverModule = context.asAbsolutePath(path.join('server', 'server.js')) // The debug options for the server - const debugOptions = { execArgv: ['--nolazy', '--inspect=6009'] } + // Use --inspect-brk instead of --inspect if you want to debug the server startup code + const debugOptions = { execArgv: ['--nolazy', '--inspect=localhost:6010'] } // If the extension is launched in debug mode then the debug server options are used // Otherwise the run options are used