Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(813)

Unified Diff: runtime/vm/exceptions.cc

Issue 10537065: Debugger break on TypeError, AssertionError (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/exceptions.cc
===================================================================
--- runtime/vm/exceptions.cc (revision 8413)
+++ runtime/vm/exceptions.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/cpu.h"
#include "vm/dart_entry.h"
+#include "vm/debugger.h"
#include "vm/flags.h"
#include "vm/object.h"
#include "vm/stack_frame.h"
@@ -244,6 +245,9 @@
void Exceptions::Throw(const Instance& exception) {
siva 2012/06/08 17:17:27 Isolate* isolate = Isolate::Current(); if (isolate
hausner 2012/06/08 17:42:35 Done.
+ if (Isolate::Current()->debugger()->IsActive()) {
+ Isolate::Current()->debugger()->SignalExceptionThrown(exception);
+ }
// Null object is a valid exception object.
ThrowExceptionHelper(exception, Instance::Handle());
siva 2012/06/08 17:17:27 Instance::Handle(isolate);
hausner 2012/06/08 17:42:35 Done.
}

Powered by Google App Engine
This is Rietveld 408576698