mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
fix(sandbox): set --inspect-brk in production sandbox when env DEBUG is truthy (#295)
This commit is contained in:
parent
a685597b70
commit
4741c9a6eb
2 changed files with 34 additions and 6 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue