Debugging sandbox documentation
I was wondering if there are any instructions for debugging the sandbox environement similar to this:
https://docs.all-hands.dev/modules/usage/how-to/debugging
which "will allow debugging the agent, controller and server elements, but not the sandbox"
Thanks!
I figured out a workaround:
- I hardcode the default value for
LOG_TO_FILEandLOG_ALL_EVENTSto true ('1') as apparently the launch.json specification:
"env": {
"LOG_ALL_EVENTS": "1",
"LOG_TO_FILE": "1",
},
impacts the rest of the system (frontend and backend minus the sandbox) but the env vars inside of sandbox pull from some different source as they are not set to true for some reason.
-
I use
logger.infoin sandbox instead oflogger.debug -
now i can log into the docker container via
docker exec -it <container id> bashand navigate to/openhands/code/logsand then cat the log file
Ideally we'd have an option to step through the code, and put breakpoints, similar as for the rest of the codebase (the debugging docs i shared above) - but for now this unblocks me a bit.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for over 30 days with no activity.
We now have the ability to run on a local runtime, without docker, which may help much more, assuming of course use cases for which sandboxing isn't necessary.