fix(sandbox): set --inspect-brk in production sandbox when env DEBUG is truthy (#295)

This commit is contained in:
Brandon Keiji
2025-05-09 04:12:19 +00:00
committed by GitHub
parent a685597b70
commit 4741c9a6eb
2 changed files with 34 additions and 6 deletions

View File

@@ -134,7 +134,9 @@ function entrypoint(workdir: string): string[] {
? process.env.DEBUG
? 'npm run debug --'
: 'npm run start --'
: 'gemini-code';
: process.env.DEBUG // for production binary debugging
? `node --inspect-brk=0.0.0.0:${process.env.DEBUG_PORT || '9229'} $(which gemini-code)`
: 'gemini-code';
const args = [...bashCmds, cliCmd, ...cliArgs];