Chromium Code Reviews| 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. |