Skip to content

Conversation

@savannahostrowski
Copy link
Owner

@savannahostrowski savannahostrowski commented Nov 12, 2025

This PR adds logic to handle --reload by automatically re-injecting debugpy into newly spawned worker processes.

Note on workflow: When running in --reload mode, editing a file causes VSCode to detach (because uvicorn kills the old worker and spawns a new one with a different PID). The debugwand session stays alive and auto-reinjects debugpy into the new worker, but you need to manually press F5 in VSCode to reconnect. This is a limitation of the Debug Adapter Protocol - there's no way to tell VSCode to automatically reconnect when the process it was attached to dies.

@savannahostrowski savannahostrowski marked this pull request as ready for review November 12, 2025 18:31
@savannahostrowski savannahostrowski merged commit 59dfc59 into main Nov 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants