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

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 11926026: Add function for one-time stop at function entry (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef INCLUDE_DART_DEBUGGER_API_H_ 5 #ifndef INCLUDE_DART_DEBUGGER_API_H_
6 #define INCLUDE_DART_DEBUGGER_API_H_ 6 #define INCLUDE_DART_DEBUGGER_API_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 typedef struct _Dart_Breakpoint* Dart_Breakpoint; 10 typedef struct _Dart_Breakpoint* Dart_Breakpoint;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 * 215 *
216 * \return A handle to the True object if no error occurs. 216 * \return A handle to the True object if no error occurs.
217 */ 217 */
218 DART_EXPORT Dart_Handle Dart_SetBreakpointAtLine( 218 DART_EXPORT Dart_Handle Dart_SetBreakpointAtLine(
219 Dart_Handle script_url, 219 Dart_Handle script_url,
220 Dart_Handle line_number, 220 Dart_Handle line_number,
221 Dart_Breakpoint* breakpoint); 221 Dart_Breakpoint* breakpoint);
222 222
223 223
224 /** 224 /**
225 * Sets a breakpoint at the entry of the given function. If class_name 225 * Sets a one-time breakpoint at the entry of the given function.
226 * is the empty string, looks for a library function with the given 226 * If class_name is the empty string, looks for a library function
227 * name. 227 * with the given name.
228 * 228 *
229 * Requires there to be a current isolate. 229 * Requires there to be a current isolate.
230 * 230 *
231 * \breakpoint If non-null, will point to the breakpoint object 231 * \breakpoint If non-null, will point to the breakpoint object
232 * if a breakpoint was successfully created. 232 * if a breakpoint was successfully created.
233 * 233 *
234 * \return A handle to the True object if no error occurs. 234 * \return A handle to the True object if no error occurs.
235 */ 235 */
236 DART_EXPORT Dart_Handle Dart_SetBreakpointAtEntry( 236 DART_EXPORT Dart_Handle Dart_SetBreakpointAtEntry(
237 Dart_Handle library, 237 Dart_Handle library,
238 Dart_Handle class_name, 238 Dart_Handle class_name,
239 Dart_Handle function_name, 239 Dart_Handle function_name,
240 Dart_Breakpoint* breakpoint); 240 Dart_Breakpoint* breakpoint);
241 241
242 242
243 /** 243 /**
244 * Sets a breakpoint at the entry of the given function. If class_name
245 * is the empty string, looks for a library function with the given
246 * name.
247 *
248 * Requires there to be a current isolate.
249 *
250 * \return A handle to the True object if no error occurs.
251 */
252 DART_EXPORT Dart_Handle Dart_OneTimeBreakAtEntry(
253 Dart_Handle library,
254 Dart_Handle class_name,
255 Dart_Handle function_name);
256
257
258 /**
244 * DEPRECATED -- use Dart_RemoveBreakpoint instead. 259 * DEPRECATED -- use Dart_RemoveBreakpoint instead.
245 * 260 *
246 * Deletes the given \breakpoint. 261 * Deletes the given \breakpoint.
247 * 262 *
248 * Requires there to be a current isolate. 263 * Requires there to be a current isolate.
249 * 264 *
250 * \return A handle to the True object if no error occurs. 265 * \return A handle to the True object if no error occurs.
251 */ 266 */
252 DART_EXPORT Dart_Handle Dart_DeleteBreakpoint( 267 DART_EXPORT Dart_Handle Dart_DeleteBreakpoint(
253 Dart_Breakpoint breakpoint); 268 Dart_Breakpoint breakpoint);
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 572
558 /** 573 /**
559 * Returns the isolate object corresponding to the isolate id. 574 * Returns the isolate object corresponding to the isolate id.
560 * 575 *
561 * \return The Dart_Isolate object corresponding to the isolate id. 576 * \return The Dart_Isolate object corresponding to the isolate id.
562 * If the specified id is invalid NULL is returned. 577 * If the specified id is invalid NULL is returned.
563 */ 578 */
564 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id); 579 DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id);
565 580
566 #endif // INCLUDE_DART_DEBUGGER_API_H_ 581 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« 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