mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix(sandbox): set --inspect-brk in production sandbox when env DEBUG is truthy (#295)
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user