Closed harmjanh closed 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.
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)