Explorar o código

Fix debugged process not being terminated when debugging session closes on Linux (#620)

Vladimir Pyatnitskiy hai 1 ano
pai
achega
0fc399bbc3

+ 1 - 1
src/debugger/godot3/server_controller.ts

@@ -221,7 +221,7 @@ export class ServerController {
 		}
 
 		log.info(`Launching game process using command: '${command}'`);
-		const debugProcess = subProcess("debug", command, { shell: true });
+		const debugProcess = subProcess("debug", command, { shell: true, detached: true });
 
 		debugProcess.stdout.on("data", (data) => { });
 		debugProcess.stderr.on("data", (data) => { });

+ 1 - 1
src/debugger/godot4/server_controller.ts

@@ -227,7 +227,7 @@ export class ServerController {
 		}
 
 		log.info(`Launching game process using command: '${command}'`);
-		const debugProcess = subProcess("debug", command, { shell: true });
+		const debugProcess = subProcess("debug", command, { shell: true, detached: true });
 
 		debugProcess.stdout.on("data", (data) => { });
 		debugProcess.stderr.on("data", (data) => { });