Open Bruceforce opened 3 years ago
The exception in question is handled up the stack, so if you continue (F5) past this one and other similar exceptions, it should run fine.
You don't normally see those exceptions because debugpy filters out anything that happens inside the standard library and installed packages, unless the exception flows out into your code. However, this logic is not aware of PEP 582, so the debugger ends up being confused about which code counts as yours, and which does not.
Try unchecking "User Uncaught Exceptions" in the Breakpoints pane - this should let you get past it without having to manually resume all the time.
I see. Feeling a bit stupid now :-). Thanks for the quick reply and for pointing that out 👍
Environment data
import debugpy; print(debugpy.__version__)
if uncertain)Actual behavior
First, sorry for the stupid title but I couldn't find a better one. Feel free to change.
I'm using VSCode with the python extension version
2021.10.1317843341
(debugpy version 1.5.0). Every time I try to debug a very simple code which uses the requests module I receive lot's of different exceptions starting withExpected behavior
After downgrading the VSCode python plugin to version
2021.9.1246542782
(debugpy version 1.4.3) everything is fine. No exceptions.Steps to reproduce:
I'm using pdm if that matters.
pdm init
(default settings)pdm add requests==2.26.0
Run debug on the following code
settings.json
launch.json