From 014d3efeb158253361c1622a86e3b306dd8cfebd Mon Sep 17 00:00:00 2001 From: andrea rota Date: Thu, 2 Nov 2023 13:10:26 +0000 Subject: [PATCH] update recommended vscode launch.json config (disable autoAttachChildProcesses) Auto attach would cause things such as Mapshaper's runCommandsXL() to fail, when running in OCI containers, as VSCode would try to attach to exec'ed child processes. See: https://github.com/microsoft/vscode-js-debug/issues/374 --- docs/developers/editors/vscode/configs/launch.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/developers/editors/vscode/configs/launch.json b/docs/developers/editors/vscode/configs/launch.json index 3fe3938f4e..9dc97b5f67 100644 --- a/docs/developers/editors/vscode/configs/launch.json +++ b/docs/developers/editors/vscode/configs/launch.json @@ -16,7 +16,9 @@ "outFiles": [ "!**/node_modules/**" ], - "sourceMaps": true + "sourceMaps": true, + "autoAttachChildProcesses": false // avoids issues with node child + // processes such as those exec'ed by Mapshaper's runCommandsXL() }, { "name": "Marxan Geoprocessing service", @@ -30,7 +32,9 @@ "outFiles": [ "!**/node_modules/**" ], - "sourceMaps": true + "sourceMaps": true, + "autoAttachChildProcesses": false // avoids issues with node child + // processes such as those exec'ed by Mapshaper's runCommandsXL() } ] } \ No newline at end of file