enable debugging through sandbox (#88)

This commit is contained in:
Olcan
2025-04-21 12:39:58 -07:00
committed by GitHub
parent 53a5728009
commit 2571e07175
4 changed files with 17 additions and 23 deletions

View File

@@ -25,5 +25,9 @@ if [[ "${GEMINI_CODE_SANDBOX:-}" =~ ^(1|true)$ ]] || \
scripts/start_sandbox.sh "$@"
else
echo "WARNING: running outside of sandbox. Set GEMINI_CODE_SANDBOX to enable sandbox."
node node_modules/@gemini-code/cli "$@"
if [ -n "${DEBUG:-}" ]; then
node --inspect-brk node_modules/@gemini-code/cli "$@"
else
node node_modules/@gemini-code/cli "$@"
fi
fi