-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experiments: Add breakpoint to an experiment #722
Comments
@iterative/dvc Is there any existing protocol for running a debugger against pipeline executions? I can't find anything in the DVC docs. From when I explored using the debugger API to launch |
There is not. For one thing, this would all have to be language specific, and there is no guarantee that pipeline stages are going to be python scripts. I think the normal workflow here would be that users debug their stages individually outside of DVC. If you really want to debug something that is running inside DVC, the way to do it would be to use remote debugging. So you would configure your pipeline stage command to run your stage inside the appropriate debugger session, and then connect to it remotely from a separate debugger process. So for debugpy something you would configure stages:
train:
cmd: python -m debugpy --listen 1234 --wait-for-client train.py ... and to debug it, you would start
For non-python stages it would work the same way. For a compiled executable and GDB example: stages:
train:
cmd: gdbserver :1234 ./train ...
|
Closing for now as this is a lower priority and we cannot progress without changes in DVC. |
A nice to have for experiments would be the ability to add a breakpoint and debug the workings of the experiment.
Original point can be found here in the review ticket.
The text was updated successfully, but these errors were encountered: