| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 6800)
|
| +++ src/debug.cc (working copy)
|
| @@ -622,7 +622,7 @@
|
|
|
| // Default call debugger on uncaught exception.
|
| bool Debug::break_on_exception_ = false;
|
| -bool Debug::break_on_uncaught_exception_ = true;
|
| +bool Debug::break_on_uncaught_exception_ = false;
|
|
|
| Handle<Context> Debug::debug_context_ = Handle<Context>();
|
| Code* Debug::debug_break_return_ = NULL;
|
| @@ -835,7 +835,9 @@
|
| // Expose the builtins object in the debugger context.
|
| Handle<String> key = Factory::LookupAsciiSymbol("builtins");
|
| Handle<GlobalObject> global = Handle<GlobalObject>(context->global());
|
| - SetProperty(global, key, Handle<Object>(global->builtins()), NONE);
|
| + RETURN_IF_EMPTY_HANDLE_VALUE(
|
| + SetProperty(global, key, Handle<Object>(global->builtins()), NONE),
|
| + false);
|
|
|
| // Compile the JavaScript for the debugger in the debugger context.
|
| Debugger::set_compiling_natives(true);
|
| @@ -2740,8 +2742,10 @@
|
| }
|
|
|
| if (Socket::Setup()) {
|
| - agent_ = new DebuggerAgent(name, port);
|
| - agent_->Start();
|
| + if (agent_ == NULL) {
|
| + agent_ = new DebuggerAgent(name, port);
|
| + agent_->Start();
|
| + }
|
| return true;
|
| }
|
|
|
|
|