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

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
Index: runtime/include/dart_debugger_api.h
===================================================================
--- runtime/include/dart_debugger_api.h (revision 3366)
+++ 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.
+ *
siva 2012/01/18 01:32:03 Will it point to the existing breakpoint if a brea
hausner 2012/01/18 23:26:38 Good question. So far, there are no such checks bu
+ * \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.

Powered by Google App Engine
This is Rietveld 408576698