| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 */ | 408 */ |
| 409 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( | 409 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( |
| 410 Dart_ActivationFrame activation_frame, | 410 Dart_ActivationFrame activation_frame, |
| 411 Dart_Handle* function_name, | 411 Dart_Handle* function_name, |
| 412 Dart_Handle* script_url, | 412 Dart_Handle* script_url, |
| 413 intptr_t* line_number, | 413 intptr_t* line_number, |
| 414 intptr_t* library_id); | 414 intptr_t* library_id); |
| 415 | 415 |
| 416 | 416 |
| 417 /** | 417 /** |
| 418 * Returns text location of the given activation frame. |
| 419 * \script_url receives a string handle with the url of the |
| 420 * source script that contains the frame's function. |
| 421 * Receives a null handle if there is no textual location |
| 422 * that corresponds to the frame, e.g. for implicitly |
| 423 * generated constructors. |
| 424 * \token_number receives the line number in the script. |
| 425 * |
| 426 * Any or all of the out parameters above may be NULL. |
| 427 * |
| 428 * Requires there to be a current isolate. |
| 429 * |
| 430 * \return A handle to the True object if no error occurs. |
| 431 * A handle to the False object if there is no text |
| 432 * position for the frame. |
| 433 */ |
| 434 DART_EXPORT Dart_Handle Dart_ActivationFrameGetLocation( |
| 435 Dart_ActivationFrame activation_frame, |
| 436 Dart_Handle* script_url, |
| 437 intptr_t* token_number); |
| 438 |
| 439 |
| 440 /** |
| 418 * Returns an array containing all the local variable names and values of | 441 * Returns an array containing all the local variable names and values of |
| 419 * the given \activation_frame. | 442 * the given \activation_frame. |
| 420 * | 443 * |
| 421 * Requires there to be a current isolate. | 444 * Requires there to be a current isolate. |
| 422 * | 445 * |
| 423 * \return A handle to an array containing variable names and | 446 * \return A handle to an array containing variable names and |
| 424 * corresponding values. The array is empty if the activation frame has | 447 * corresponding values. The array is empty if the activation frame has |
| 425 * no variables. If non-empty, variable names are at array offsets 2*n, | 448 * no variables. If non-empty, variable names are at array offsets 2*n, |
| 426 * values at offset 2*n+1. | 449 * values at offset 2*n+1. |
| 427 */ | 450 */ |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 * \param request A REST-like string, which uses '/' to separate | 617 * \param request A REST-like string, which uses '/' to separate |
| 595 * parameters. The first parameter is always the status type. | 618 * parameters. The first parameter is always the status type. |
| 596 * | 619 * |
| 597 * \return The requested status as a JSON formatted string, with the | 620 * \return The requested status as a JSON formatted string, with the |
| 598 * contents defined by the status plug-in. The caller is responsible | 621 * contents defined by the status plug-in. The caller is responsible |
| 599 * for freeing this string. | 622 * for freeing this string. |
| 600 */ | 623 */ |
| 601 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 624 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 602 | 625 |
| 603 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 626 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |