-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Debuging es6 Proxy as property -> Internal error: illegal access #12749
Comments
But should I anyway be able to debugg Proxy objects run in node.js in vscode? Because in fact at lest in my case it does not seam to work... when I create a Proxy object as var and not as property I do not see any variables under 'Variables' in the Debugger view at all and when I add one to the watch I see same message on it 'illegal access'. Btw.: node.js Version 6.7.0 |
Yes, it's a bug that it doesn't work. |
I'd be very happy to see this fixed soon. |
@roblourens would this work with node2? |
Not for Node 6.x (with the same errors in chrome devtools), but it works in the latest 7 nightlies. |
@weinand This is worse in Node 7 for node-debug - the debugger crashes entirely when there is a Proxy object in scope. |
This node crash occurs when retrieving the stack trace through the v8 debugger protocol:
There is nothing I can do about this (and node-inspector shows exactly the same behaviour). |
So I understand this is out of your reach? Would you recommend me to file a bug to V8? |
The debug code there is deprecated so it's pretty unlikely to be fixed (and that's why these issues pop up with new JS features). I recommend using |
@roblourens I suggest that you add this info to the November release notes under a "node2 update" item. |
Thank you very much! That works indeed! Wild times! The new one is still labeled experimental, the old one is already deprecated! :) |
@jiron12 no, VS Code's old node debug is not deprecated. |
Documented this in the release notes - closing as upstream |
can "type": "node2" be set as default somewhere / for single file debugging ? |
@pannous You could try to use this approach: https://code.visualstudio.com/updates/v1_9#_user-level-launchjson In the next release we will pick the correct debugger automatically. |
Steps to Reproduce:
1 - If I, in node.js 6.6, write (resp. have transpiled from TypeScript) a class like that:
2 - And then instantiate it like this:
var table = new Table();
3 - When I debug in Visual Studio Code and I want to watch the var table I always have
written there, meaning I can not watch table or any of its properties.
The same thing works perfectly fine in Chrome.
I have raised this on Stackoverflow:
http://stackoverflow.com/questions/39710014/debuging-es6-proxy-as-property-internal-error-illegal-access
The text was updated successfully, but these errors were encountered: