Skip to content

Allow "request": "attach" and "autoReload": to auto-reload code in remote service #1874

@DiamondJoseph

Description

@DiamondJoseph

I would like to use debugpy to diagnose issues and try potential solutions in a running service. autoReload appears to be mutually exclusive with "request": "attach", only allowed if "request": "launch".

Is this a hard limitation that will never be possible?

Some of the services to be debugged are serving control systems for hardware on specific Kubernetes nodes, so using something like Telepresence to proxy traffic to a local instance of the service is not practical.

Ideally, launching with "request": "attach" and autoReload would connect to the service, allow live code changes and on disconnect return the code to its initial state. Any code changes are preserved on the developer machine and can be re-deployed, leaving the running service in an unknown state for the minimum amount of time.

Image
Snapshot of Intellisense telling me that autoReload is not allowed.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions