Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Debugger throws error 'Unable to open <frozen importlib._bootstrap>' #312

Closed
DonJayamanne opened this issue Apr 5, 2018 · 5 comments
Closed

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Apr 5, 2018

  • Open VSC
  • Select Raised Exceptions
  • Start debugging a simple program print("Hello world")
  • Debugger will display an error Unable to open <frozen importlib._bootstrap>

Problem:

  • There is some error in PTVSD and the debugger is capturing this error and attempting to break into it (after all, we have enabled this feature Raised Exceptions.
  • However this should not happen, until the user code has started.
    I.e. we shouldn't be enabling exceptions filters/breakpoints until just before the user code is about to be executed.

#85

@DonJayamanne DonJayamanne changed the title Debugger throws error Debugger throws error 'Unable to open <frozen importlib._bootstrap>' Apr 5, 2018
@DonJayamanne DonJayamanne added this to the VSC Public Preview milestone Apr 5, 2018
@DonJayamanne
Copy link
Contributor Author

@brettcannon @int19h
Is the milestone for this issue valid? Or should this be pushed to Release.
I'd consider this to be a fundamental issue.

@int19h
Copy link
Contributor

int19h commented Apr 5, 2018

This is one of the two items in #194. Basically, this is user code, specifically the implicit import of builtins at the very beginning of it. But we shouldn't be breaking there because the exception itself is in standard library code.

#194 is in Public Preview, so that's the right milestone (or we can close this one as a dupe).

@DonJayamanne
Copy link
Contributor Author

or we can close this one as a dupe

Done

@nkfeiyang
Copy link

where to enable or disable "Raised Exceptions" in vsc?

@brettcannon
Copy link
Member

@nkfeiyang there's a checkbox in the right-hand column while the debugger is running.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants