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

Unified Diff: runtime/include/dart_debugger_api.h

Issue 9240014: Set breakpoint at url, line number (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 | « runtime/bin/main.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 3419)
+++ runtime/include/dart_debugger_api.h (working copy)
@@ -17,7 +17,25 @@
Dart_Breakpoint breakpoint,
Dart_StackTrace stack_trace);
+
/**
+ * 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.
+ *
+ * Requires there to be a current isolate.
+ *
+ * \breakpoint If non-null, will point to the breakpoint object
+ * if a breakpoint was successfully created.
+ *
+ * \return A handle to the True object if no error occurs.
+ */
+DART_EXPORT Dart_Handle Dart_SetBreakpointAtLine(
+ Dart_Handle script_url,
+ Dart_Handle line_number,
+ Dart_Breakpoint* breakpoint);
+
+
+/**
* Sets a breakpoint at the entry of the given function. If class_name
* is the empty string, looks for a library function with the given
* name.
@@ -35,6 +53,7 @@
Dart_Handle function_name,
Dart_Breakpoint* breakpoint);
+
/**
* Installs a handler callback function that gets called by the VM
* when a breakpoint has been reached.
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698