瀏覽代碼

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

Vladimir Pyatnitskiy 1 年之前
父節點
當前提交
0fc399bbc3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/debugger/godot3/server_controller.ts
  2. 1 1
      src/debugger/godot4/server_controller.ts

+ 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) => { });