rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 192 forks source link

Added in V8::C::Debug::EnableAgent() #310

Closed calh closed 9 years ago

calh commented 10 years ago

Also adding in some quick documentation. Let me konw if there's any issues with the code! Seemed like a pretty simple addition.

I still haven't been able to use Eclipse for anything interesting. It crashes 80% of the time. And when it's not crashing, it doesn't show any detailed information on the stack, variables, or file sources. I haven't had much luck with jamming JSON into my telnet client either.

Attempting something like {"seq":725,"type":"request","command":"setexceptionbreak","arguments":{"type":"all","enabled":true}} doesn't seem to have any effect. Any suggestions?

calh commented 10 years ago

I don't understand why the array tests are segfaulting. ( array_spec.rb, line 5, doing V8::C::Object::New() ) Is it possible my class builder line in Init() is affecting that?

ignisf commented 9 years ago

@calh, could this be the same issue as https://github.com/cowboyd/libv8/issues/156 ?

calh commented 9 years ago

@ignisf I'm not quite sure, it looks similar, but I can't seem to get a deep stack trace like you have. Here's a gist output of my spec run, and here's a gist running each individual spec file

What do you think?

ignisf commented 9 years ago

ugh... Can't be certain until I see a stack trace from gdb... What distro are you running this on?

calh commented 9 years ago

Ubuntu, Trusty

cowboyd commented 9 years ago

I'm not sure where the debug apis live in v8 4.5, but EnableAgent doesn't seem to be around anymore.