Replies: 1 comment
-
Typically that would be an attach scenario where you run your code, have it hit Does https://code.visualstudio.com/docs/python/debugging along with https://github.com/microsoft/debugpy#breakpoint-function give you what you're after? Otherwise I think you might be after a feature request for https://github.com/microsoft/debugpy . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Very often I run commands or tests from terminal and I still manually insert
breakpoint()
calls in order to reach the code I need to debug. This means zero benefits from vscode-python own debugger, as that does not make use of it.I am wondering if there is something we can configure on our terminal for python, maybe similar to how we can change the debugger to ipdb via
export PYTHONBREAKPOINT="ipdb.set_trace"
, so we could instead trigger vscode debugger. If that would also allow use to use the IDE configured breakpoints instead of having to add thebreakpoints()
lines ourselves even better.The key here is that I do not want to make use of any "launchers", because almost always there is a specific command line with arguments that I need to run in order to reproduce the bug I need to debug, some times is running pytest, a python based cli or pytest.
I tried to google a lot about this in various times, never found a solution.
Beta Was this translation helpful? Give feedback.
All reactions