| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 Dart_ActivationFrame* frame); | 320 Dart_ActivationFrame* frame); |
| 321 | 321 |
| 322 | 322 |
| 323 /** | 323 /** |
| 324 * Returns information about the given activation frame. | 324 * Returns information about the given activation frame. |
| 325 * \function_name receives a string handle with the qualified | 325 * \function_name receives a string handle with the qualified |
| 326 * function name. | 326 * function name. |
| 327 * \script_url receives a string handle with the url of the | 327 * \script_url receives a string handle with the url of the |
| 328 * source script that contains the frame's function. | 328 * source script that contains the frame's function. |
| 329 * \line_number receives the line number in the script. | 329 * \line_number receives the line number in the script. |
| 330 * \library_id receives the id of the library in which the |
| 331 * function in this frame is defined. |
| 330 * | 332 * |
| 331 * Any or all of the out parameters above may be NULL. | 333 * Any or all of the out parameters above may be NULL. |
| 332 * | 334 * |
| 333 * Requires there to be a current isolate. | 335 * Requires there to be a current isolate. |
| 334 * | 336 * |
| 335 * \return A handle to the True object if no error occurs. | 337 * \return A handle to the True object if no error occurs. |
| 336 */ | 338 */ |
| 337 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( | 339 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( |
| 338 Dart_ActivationFrame activation_frame, | 340 Dart_ActivationFrame activation_frame, |
| 339 Dart_Handle* function_name, | 341 Dart_Handle* function_name, |
| 340 Dart_Handle* script_url, | 342 Dart_Handle* script_url, |
| 341 intptr_t* line_number); | 343 intptr_t* line_number, |
| 344 intptr_t* library_id); |
| 342 | 345 |
| 343 | 346 |
| 344 /** | 347 /** |
| 345 * Returns an array containing all the local variable names and values of | 348 * Returns an array containing all the local variable names and values of |
| 346 * the given \activation_frame. | 349 * the given \activation_frame. |
| 347 * | 350 * |
| 348 * Requires there to be a current isolate. | 351 * Requires there to be a current isolate. |
| 349 * | 352 * |
| 350 * \return A handle to an array containing variable names and | 353 * \return A handle to an array containing variable names and |
| 351 * corresponding values. The array is empty if the activation frame has | 354 * corresponding values. The array is empty if the activation frame has |
| 352 * no variables. If non-empty, variable names are at array offsets 2*n, | 355 * no variables. If non-empty, variable names are at array offsets 2*n, |
| 353 * values at offset 2*n+1. | 356 * values at offset 2*n+1. |
| 354 */ | 357 */ |
| 355 DART_EXPORT Dart_Handle Dart_GetLocalVariables( | 358 DART_EXPORT Dart_Handle Dart_GetLocalVariables( |
| 356 Dart_ActivationFrame activation_frame); | 359 Dart_ActivationFrame activation_frame); |
| 357 | 360 |
| 358 | 361 |
| 359 /** | 362 /** |
| 363 * Returns an array containing all the global variable names and values of |
| 364 * the library with given \library_id. |
| 365 * |
| 366 * Requires there to be a current isolate. |
| 367 * |
| 368 * \return A handle to an array containing variable names and |
| 369 * corresponding values. Variable names are at array offsets 2*n, |
| 370 * values at offset 2*n+1. |
| 371 */ |
| 372 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); |
| 373 |
| 374 |
| 375 /** |
| 360 * Returns the class of the given \object. | 376 * Returns the class of the given \object. |
| 361 * | 377 * |
| 362 * Requires there to be a current isolate. | 378 * Requires there to be a current isolate. |
| 363 * | 379 * |
| 364 * \return A handle to the class object. | 380 * \return A handle to the class object. |
| 365 */ | 381 */ |
| 366 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); | 382 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); |
| 367 | 383 |
| 368 | 384 |
| 369 /** | 385 /** |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 * Returns the url of the library \library_id. | 492 * Returns the url of the library \library_id. |
| 477 * | 493 * |
| 478 * Requires there to be a current isolate. | 494 * Requires there to be a current isolate. |
| 479 * | 495 * |
| 480 * \return A string handle containing the URL of the library. | 496 * \return A string handle containing the URL of the library. |
| 481 */ | 497 */ |
| 482 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); | 498 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); |
| 483 | 499 |
| 484 | 500 |
| 485 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 501 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |