7 ms·
I remember searching for workflow I used in Java, for Python. In Java I just started the application with some debug flags that opened debug TCP port, then I co
by inshadows 6y ago
I remember searching for workflow I used in Java, for Python. In Java I just started the application with some debug flags that opened debug TCP port, then I connected with debugger (IDE), placed a breakpoint locally, and then the execution stopped when it hit the breakpoint.
I see it uses debugpy. Does it work similarly? I remember I stumbled upon some remote debugging library for Python that however required me to place breakpoint() calls in the program, and the program stopped immediately on the call. That's inferior.
EDIT: The library is https://github.com/ionelmc/python-remote-pdb https://github.com/ionelmc/python-remote-pdb
- vladkol 6y agoyes, debugpy is similar. It also support Debug Adapter Protocol which is utilized by VS Code. This is why in addition to debugpy.breakpoint() calls you can simply use real VS Code breakpoints. On top of that, Azure Debug Relay creates a secure tunnel between your machine and the remote debuggee, and therefore eliminate a need to expose open ports or VPN.