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

Error debuging an ES6 Proxy #15616

Closed
Josema opened this issue Nov 17, 2016 · 4 comments
Closed

Error debuging an ES6 Proxy #15616

Josema opened this issue Nov 17, 2016 · 4 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)

Comments

@Josema
Copy link

Josema commented Nov 17, 2016

  • VSCode Version: 1.7.1 (1.7.1)
  • OS Version: OSX El capitan 10.11.2
  • Node.js version: v7.1.0

Steps to Reproduce:

  1. Defining a object as ES6 Proxy
  2. Running script with the Debug tool (Shift+CMD+D)
  3. Typing the object in the console

Throw this error

#
# Fatal error in ../deps/v8/src/runtime/runtime-debug.cc, line 1423
# Check failed: args[0]->IsJSObject().
#
==== C stack trace ===============================
    0   node                                0x0000000100bca643 v8::base::debug::StackTrace::StackTrace() + 19
    1   node                                0x0000000100bc77c9 V8_Fatal + 233
    2   node                                0x00000001007bd586 v8::internal::Runtime_DebugGetPrototype(int, v8::internal::Object**, v8::internal::Isolate*) + 438
    3   ???                                 0x00001bed7b0063a7 0x0 + 30706784822183

screen shot 2016-11-17 at 12 31 30

@ramya-rao-a
Copy link
Contributor

Can you share sample code?

@ramya-rao-a ramya-rao-a added the info-needed Issue requires more information from poster label Nov 18, 2016
@jrieken jrieken removed the info-needed Issue requires more information from poster label Nov 22, 2016
@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Nov 22, 2016
@weinand
Copy link
Contributor

weinand commented Nov 22, 2016

@Josema please try to use our new experimental node debugger by setting the type attribute in your launch config to node2.

@Josema
Copy link
Author

Josema commented Nov 22, 2016

@ramya-rao-a

let target = {a:123};
let p = new Proxy(target, {
  set: (target, property, value, receiver) => {}
});
console.log( p );

Set a breakpoint on the console.log line

@weinand Working with node2 thanks!!

@weinand
Copy link
Contributor

weinand commented Dec 8, 2016

dup of #12749

@weinand weinand closed this as completed Dec 8, 2016
@weinand weinand added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 8, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants