Commit 24587427 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fixed double printing of exceptions when enabeling the debugger.

Detect the response to the continue command.
Review URL: http://codereview.chromium.org/17071

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1025 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 74b7d4ad
......@@ -106,14 +106,14 @@ bool Shell::ExecuteString(Handle<String> source,
Handle<Script> script = Script::Compile(source, name);
if (script.IsEmpty()) {
// Print errors that happened during compilation.
if (report_exceptions)
if (report_exceptions && !i::FLAG_debugger)
ReportException(&try_catch);
return false;
} else {
Handle<Value> result = script->Run();
if (result.IsEmpty()) {
// Print errors that happened during execution.
if (report_exceptions)
if (report_exceptions && !i::FLAG_debugger)
ReportException(&try_catch);
return false;
} else {
......
......@@ -705,9 +705,14 @@ function DebugResponseDetails(json_response) {
details.text = result;
break;
case 'continue':
details.text = "(running)";
break;
default:
details.text =
'Response for unknown command \'' + response.command + '\'';
'Response for unknown command \'' + response.command + '\'' +
' (' + json_response + ')';
}
} catch (e) {
details.text = 'Error: "' + e + '" formatting response';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment