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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 10797033: Debugger API to enable/disable debugging of libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 9763)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -75,6 +75,28 @@
/**
+ * Returns true if the debugger can step into code of the given library.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to the True object if no error occurs.
+ */
+DART_EXPORT Dart_Handle Dart_GetLibraryDebuggable(intptr_t library_id,
+ bool* is_debuggable);
+
+
+/**
+ * Requets that debugging be enabled for the given library.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to the True object if no error occurs.
+ */
+DART_EXPORT Dart_Handle Dart_SetLibraryDebuggable(intptr_t library_id,
+ bool is_debuggable);
+
+
+/**
* Returns a list of urls (strings) of all the scripts loaded in the
* given library.
*

Powered by Google App Engine
This is Rietveld 408576698