-
Notifications
You must be signed in to change notification settings - Fork 68
Debugging in VS Code breaks with 'Unable to open <frozen importlib._bootstrap>' error #85
Comments
Previous version probably worked because it was not setting exception breakpoints at all. |
@karthiknadig
{
'filter': 'raised',
'label': 'Raised Exceptions',
'default': 'true'
},
I.e. this same/similar behavior exists in VS, if the above flag is set. We're planning on removing this setting completely from release 1 of VS Code debugger as it completely breaks it. |
VS does not use Filters. VS uses Exception options to work with exceptions. There is a separate window by the name Exception Settings where we can set these options. Actually setting them to default Actually removing the defaults should be fine as well.
|
Yes, as a temporary solution.
Either way, shouldn't VS respect the defaults provided by PTVSD? At the end of the day, if VS uses the exception options, I believe this problem we're experiencing in VS code should also appear in VS. Do you agree? |
I had set them to
No, I have not seen this repro with exceptions settings. We can try this on the VM tomorrow. |
I think the problem might be that pydev is trying to hook every exception and it is causing the issue: |
VSC to supports this, however it's done through the config. Should look into that. |
Summary: This is the expected behavior. As a solution to prevent breaking into exceptions when program starts, the default value for the filter |
Hi, I still didn't get the idea of how to set this value of Raised Exeptions to false. It all start to happen when I started to use modules from sibling folders using Now I can even run my code but I can't debug due this error. |
I still getting this error when using breakpoints (works fine when no breakpoints is used):
|
@The-any-Key This was caused by #1077 The fix is in master, but not released yet. |
Ok. Found why the bug happen to me. My environment was in: I just moved the scripts outside the environment to: |
When debugging using the latest version of PTVSD I'm getting the following error:
Unable to open '<frozen importlib._bootstrap>': File not found (file:///Users/donjayamanne/Desktop/Development/PythonStuff/IssueRepos/debuggerTests/
Tested with yesterdays with a snapshot of yesterdays repo (around lunchtime) and it works.
Commenting out the following line of code fixes the issue :
Possibly specific to Macs only, as this is required for VS.
The text was updated successfully, but these errors were encountered: