microsoft / vscode-python-debugger

Python debugger (debugpy) extension for VS Code.
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy
MIT License
57 stars 24 forks source link

Add a way to inject code in the python file #392

Open nicolas-dufour opened 2 months ago

nicolas-dufour commented 2 months ago

It would be great to have a way to inject some code when running the debugger. The use case i have, is i would like to monkey patch something when debugging but i would like to avoid changing my base code. If there was an arg to add some code when debugging it would be great!

### Tasks
paulacamargo25 commented 2 months ago

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.