| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 /** | 259 /** |
| 260 * Installs a callback function that gets called by the VM when | 260 * Installs a callback function that gets called by the VM when |
| 261 * an exception has been thrown. | 261 * an exception has been thrown. |
| 262 * | 262 * |
| 263 * Requires there to be a current isolate. | 263 * Requires there to be a current isolate. |
| 264 */ | 264 */ |
| 265 DART_EXPORT void Dart_SetExceptionThrownHandler( | 265 DART_EXPORT void Dart_SetExceptionThrownHandler( |
| 266 Dart_ExceptionThrownHandler handler); | 266 Dart_ExceptionThrownHandler handler); |
| 267 | 267 |
| 268 |
| 269 // On which exceptions to pause. |
| 270 typedef enum { |
| 271 kNoPauseOnExceptions = 1, |
| 272 kPauseOnUnhandledExceptions, |
| 273 kPauseOnAllExceptions, |
| 274 } Dart_ExceptionPauseInfo; |
| 275 |
| 276 /** |
| 277 * Define on which exceptions the debugger pauses. |
| 278 * |
| 279 * Requires there to be a current isolate. |
| 280 */ |
| 281 DART_EXPORT Dart_Handle Dart_SetExceptionPauseInfo( |
| 282 Dart_ExceptionPauseInfo pause_info); |
| 283 |
| 284 |
| 268 /** | 285 /** |
| 269 * Returns in \trace the the current stack trace, or NULL if the | 286 * Returns in \trace the the current stack trace, or NULL if the |
| 270 * VM is not paused. | 287 * VM is not paused. |
| 271 * | 288 * |
| 272 * Requires there to be a current isolate. | 289 * Requires there to be a current isolate. |
| 273 * | 290 * |
| 274 * \return A handle to the True object if no error occurs. | 291 * \return A handle to the True object if no error occurs. |
| 275 */ | 292 */ |
| 276 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace); | 293 DART_EXPORT Dart_Handle Dart_GetStackTrace(Dart_StackTrace* trace); |
| 277 | 294 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 * Returns the url of the library \library_id. | 476 * Returns the url of the library \library_id. |
| 460 * | 477 * |
| 461 * Requires there to be a current isolate. | 478 * Requires there to be a current isolate. |
| 462 * | 479 * |
| 463 * \return A string handle containing the URL of the library. | 480 * \return A string handle containing the URL of the library. |
| 464 */ | 481 */ |
| 465 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); | 482 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); |
| 466 | 483 |
| 467 | 484 |
| 468 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 485 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |