Matthias Queitsch
03/08/2022, 1:45 PMAlex Service
03/08/2022, 2:40 PMdebugpy.listen(('0.0.0.0', 5678))
in the appropriate op/function. Note that we’re using a tuple to specify the interface
• call debugpy.wait_for_client()
so you’re not rushing around
• finally, call debugpy.breakpoint()
wherever you’d like in the function
Oh, and you’ll need to create a launch.json
for python remote attach. In VSCode, click “Run and Debug” -> “Create a launch.json file” and follow the prompts ( python -> remote attach -> localhost -> 5678 )Sebastian Napiorkowski
03/08/2022, 2:49 PMAlex Service
03/08/2022, 2:51 PMMatthias Queitsch
03/08/2022, 3:11 PMAlex Service
03/08/2022, 3:14 PMpython:3.9.8-buster
container wasn’t really working for me though due to some ptrace
error