From 4c59df38eaee04cfaf168dd7345945a1de06ece0 Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Fri, 1 Dec 2023 10:42:37 -0500 Subject: [PATCH] Fix: Increment server debug port The bash-ide extension also uses port 6009 for debugging. Increment the port to avoid conflicts. --- .vscode/launch.json | 2 +- client/src/language/languageClient.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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