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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 10657048: Debugger support to display global variables (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/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 9118)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -327,6 +327,8 @@
* \script_url receives a string handle with the url of the
* source script that contains the frame's function.
* \line_number receives the line number in the script.
+ * \library_id receives the id of the library in which the
+ * function in this frame is defined.
*
* Any or all of the out parameters above may be NULL.
*
@@ -338,7 +340,8 @@
Dart_ActivationFrame activation_frame,
Dart_Handle* function_name,
Dart_Handle* script_url,
- intptr_t* line_number);
+ intptr_t* line_number,
+ intptr_t* library_id);
/**
@@ -357,6 +360,19 @@
/**
+ * Returns an array containing all the global variable names and values of
+ * the library with given \library_id.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \return A handle to an array containing variable names and
+ * corresponding values. Variable names are at array offsets 2*n,
+ * values at offset 2*n+1.
+ */
+DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id);
+
+
+/**
* Returns the class of the given \object.
*
* Requires there to be a current isolate.
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | runtime/vm/debugger.h » ('j') | runtime/vm/debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698