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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 10540121: Add API to configure debugger pause on exception (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/debugger.h » ('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 8556)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -265,7 +265,24 @@
DART_EXPORT void Dart_SetExceptionThrownHandler(
Dart_ExceptionThrownHandler handler);
+
+// On which exceptions to pause.
+typedef enum {
+ kNoPauseOnExceptions = 1,
+ kPauseOnUnhandledExceptions,
+ kPauseOnAllExceptions,
+} Dart_ExceptionPauseInfo;
+
/**
+ * Define on which exceptions the debugger pauses.
+ *
+ * Requires there to be a current isolate.
+ */
+DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo(
+ Dart_ExceptionPauseInfo pause_info);
+
+
+/**
* Returns in \trace the the current stack trace, or NULL if the
* VM is not paused.
*
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698