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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 9117015: Add functions to list library and script urls in an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | runtime/vm/debugger_api_impl.cc » ('J')
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 3502)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -19,6 +19,41 @@
/**
+ * Returns a list of urls (strings) of all the libraries loaded in the
+ * current isolate.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to a list of string handles.
+ */
+DART_EXPORT Dart_Handle Dart_GetLibraryURLs();
+
+
+/**
+ * Returns a list of urls (strings) of all the scripts loaded in the
+ * given library.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to a list of string handles.
+ */
+DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url);
+
+
+/**
+ * Returns a a string containing the source code of the given script
siva 2012/01/24 18:37:14 a a
hausner 2012/01/24 21:34:42 Done.
+ * in the given library.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to string containing the source text if no error
+ * occurs.
+ */
+DART_EXPORT Dart_Handle Dart_GetScriptSource(
+ Dart_Handle library_url_in,
+ Dart_Handle script_url_in);
+
+/**
* Sets a breakpoint at line \line_number in \script_url, or the closest
* following line (within the same function) where a breakpoint can be set.
*
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | runtime/vm/debugger_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698