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
This commit is contained in:
parent
74b7d4ad00
commit
2458742734
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user