summaryrefslogtreecommitdiff
path: root/scripts/start.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/start.js')
-rw-r--r--scripts/start.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/start.js b/scripts/start.js
index 6a5445f3..373fe8c8 100644
--- a/scripts/start.js
+++ b/scripts/start.js
@@ -64,6 +64,11 @@ const env = {
DEV: 'true',
};
+if (process.env.DEBUG) {
+ // If this is not set, the debugger will pause on the outer process rather
+ // than the relauncehd process making it harder to debug.
+ env.GEMINI_CLI_NO_RELAUNCH = 'true';
+}
const child = spawn('node', nodeArgs, { stdio: 'inherit', env });
child.on('close', (code) => {