rubyjs / therubyracer

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

uninitialized constant V8::C::Debug #291

Closed harmjanh closed 10 years ago

harmjanh commented 10 years ago

When I want to debug javascript in my rails app I get an exception when I want to attach the debugger.

The error is: uninitialized constant V8::C::Debug.

My code is: V8::C::Debug::EnableAgent("MyRubyApplication", 3500) I have the latest version of therubyracer (0.12.1)

cowboyd commented 10 years ago

The EnableAgent() method was removed from v8 3.0, Instead, you can just set the command options directly:

V8::C::SetFlagsFromString("--debugger-agent --debugger-port=3500")

Note that you can pass in any v8 supported command line options.