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

Unified Diff: runtime/include/dart_debugger_api.h

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
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 8456)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -22,7 +22,11 @@
Dart_Handle url,
intptr_t line_number);
+typedef void Dart_ExceptionThrownHandler(
+ Dart_Handle exception_object,
+ Dart_StackTrace stack_trace);
+
/**
* Caches a given \object and returns an object id. The object id is only
* valid while the VM is paused. The cache is invalidated when the VM
@@ -252,6 +256,14 @@
DART_EXPORT void Dart_SetBreakpointResolvedHandler(
Dart_BreakpointResolvedHandler handler);
+/**
+ * Installs a callback function that gets called by the VM when
+ * an exception has been thrown.
+ *
+ * Requires there to be a current isolate.
+ */
+DART_EXPORT void Dart_SetExceptionThrownHandler(
+ Dart_ExceptionThrownHandler handler);
/**
* Returns in \trace the the current stack trace, or NULL if the
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698