You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the VSCode Debug Console when the execution is paused, I get this for everything that is imported: Uncaught ReferenceError: Foo is not defined
This is on a simple piece of code like this:
importFoofrom'foo'Foo.bar()
When I run this in the debug console: Foo.bar()
I can work around it in the debug console like this: _Foo.Foo.bar()
In the closure scope, all the imported modules are shown and that's where I got the _Foo from.
Seems like when running Typescript, this should just work in the debug console?
Bug Report
When using the VSCode Debug Console when the execution is paused, I get this for everything that is imported:
Uncaught ReferenceError: Foo is not defined
This is on a simple piece of code like this:
When I run this in the debug console:
Foo.bar()
I can work around it in the debug console like this:
_Foo.Foo.bar()
In the closure scope, all the imported modules are shown and that's where I got the
_Foo
from.Seems like when running Typescript, this should just work in the debug console?
🔎 Search Terms
"debug console"
🕗 Version & Regression Information
Node 12.20.1
VSCode 1.54.1
Typescript 4.1.2
💻 Code
Tsconfig:
🙁 Actual behavior
Getting an error in the debug console when copy pasting a piece of source code with imported module that should be able to run as is.
🙂 Expected behavior
Every piece of source code where the debugger is currently paused, should be runnable in the debug console.
The text was updated successfully, but these errors were encountered: