Author: [email protected]
Date: Tue Jan 6 01:43:18 2009
New Revision: 1025
Modified:
branches/bleeding_edge/src/d8.cc
branches/bleeding_edge/src/d8.js
Log:
Fixed double printing of exceptions when enabeling the debugger.
Detect the response to the continue command.
Review URL: http://codereview.chromium.org/17071
Modified: branches/bleeding_edge/src/d8.cc
==============================================================================
--- branches/bleeding_edge/src/d8.cc (original)
+++ branches/bleeding_edge/src/d8.cc Tue Jan 6 01:43:18 2009
@@ -106,14 +106,14 @@
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 {
Modified: branches/bleeding_edge/src/d8.js
==============================================================================
--- branches/bleeding_edge/src/d8.js (original)
+++ branches/bleeding_edge/src/d8.js Tue Jan 6 01:43:18 2009
@@ -705,9 +705,14 @@
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';
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---