| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT | 26 #define ILLEGAL_ISOLATE_ID ILLEGAL_PORT |
| 27 | 27 |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * Null value for breakpoint id. Guaranteed never to be associated | 30 * Null value for breakpoint id. Guaranteed never to be associated |
| 31 * with a valid breakpoint. | 31 * with a valid breakpoint. |
| 32 */ | 32 */ |
| 33 #define ILLEGAL_BREAKPOINT_ID 0 | 33 #define ILLEGAL_BREAKPOINT_ID 0 |
| 34 | 34 |
| 35 | 35 |
| 36 // DEPRECATED -- use Dart_PausedEventHandler | |
| 37 typedef void Dart_BreakpointHandler(Dart_IsolateId isolate_id, | |
| 38 Dart_Breakpoint breakpoint, | |
| 39 Dart_StackTrace stack_trace); | |
| 40 | |
| 41 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id, | 36 typedef void Dart_ExceptionThrownHandler(Dart_IsolateId isolate_id, |
| 42 Dart_Handle exception_object, | 37 Dart_Handle exception_object, |
| 43 Dart_StackTrace stack_trace); | 38 Dart_StackTrace stack_trace); |
| 44 | 39 |
| 45 typedef enum { | 40 typedef enum { |
| 46 kCreated = 0, | 41 kCreated = 0, |
| 47 kInterrupted, | 42 kInterrupted, |
| 48 kShutdown, | 43 kShutdown, |
| 49 } Dart_IsolateEvent; | 44 } Dart_IsolateEvent; |
| 50 | 45 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 /** | 277 /** |
| 283 * Can be called from the breakpoint handler. Causes the debugger to | 278 * Can be called from the breakpoint handler. Causes the debugger to |
| 284 * break after returning from the current Dart function. | 279 * break after returning from the current Dart function. |
| 285 * | 280 * |
| 286 * Requires there to be a current isolate. | 281 * Requires there to be a current isolate. |
| 287 */ | 282 */ |
| 288 DART_EXPORT Dart_Handle Dart_SetStepOut(); | 283 DART_EXPORT Dart_Handle Dart_SetStepOut(); |
| 289 | 284 |
| 290 | 285 |
| 291 /** | 286 /** |
| 292 * DEPRECATED -- use Dart_SetPausedEventHandler | |
| 293 * | |
| 294 * Installs a handler callback function that gets called by the VM | |
| 295 * when a breakpoint has been reached. | |
| 296 * | |
| 297 * Requires there to be a current isolate. | |
| 298 */ | |
| 299 DART_EXPORT void Dart_SetBreakpointHandler( | |
| 300 Dart_BreakpointHandler bp_handler); | |
| 301 | |
| 302 | |
| 303 /** | |
| 304 * Installs a handler callback function that gets called by the VM | 287 * Installs a handler callback function that gets called by the VM |
| 305 * when a breakpoint location has been reached or when stepping. | 288 * when a breakpoint location has been reached or when stepping. |
| 306 * | 289 * |
| 307 * Requires there to be a current isolate. | 290 * Requires there to be a current isolate. |
| 308 */ | 291 */ |
| 309 DART_EXPORT void Dart_SetPausedEventHandler( | 292 DART_EXPORT void Dart_SetPausedEventHandler( |
| 310 Dart_PausedEventHandler handler); | 293 Dart_PausedEventHandler handler); |
| 311 | 294 |
| 312 | 295 |
| 313 /** | 296 /** |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 715 |
| 733 | 716 |
| 734 /** | 717 /** |
| 735 * Returns the isolate id for an isolate. | 718 * Returns the isolate id for an isolate. |
| 736 * | 719 * |
| 737 * \return The Dart_IsolateId value corresponding to the isolate. | 720 * \return The Dart_IsolateId value corresponding to the isolate. |
| 738 */ | 721 */ |
| 739 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); | 722 DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate isolate); |
| 740 | 723 |
| 741 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 724 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |