Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node debugger variables undefined #2963

Closed
SamVerschueren opened this issue Feb 12, 2016 · 3 comments
Closed

Node debugger variables undefined #2963

SamVerschueren opened this issue Feb 12, 2016 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues

Comments

@SamVerschueren
Copy link
Contributor

I was debugging https://github.com/editorconfig/editorconfig-vscode and noticed something odd.

screen shot 2016-02-12 at 12 52 38

As you can see in the left pane, savedDocument.fileName is undefined. But in reality, it is not because basename(savedDocument.filename) returned .editorconfig, otherwise I couldn't go inside the if statement.

To be clear, it is a TypeScript project (as it is an extension), so not sure for vanilla JavaScript projects. Seems a quite important bug to be honest.

@bpasero Are you able to pass this to the right person? Thanks :)

@weinand weinand added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 12, 2016
@SamVerschueren
Copy link
Contributor Author

This bug doesn't always occur. I debugged another project (which is plain JavaScript) and it was working fine.

@grabbou
Copy link

grabbou commented Feb 24, 2016

Experiencing the same with Node.js & babel require hook. Not all values are undefined though.

@weinand
Copy link
Contributor

weinand commented Aug 17, 2017

This should no longer be a problem with the "inspector" protocol debugging.

@weinand weinand closed this as completed Aug 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

3 participants