| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 * \return A handle to an array containing field names and | 591 * \return A handle to an array containing field names and |
| 592 * corresponding field values. The array is empty if the class has | 592 * corresponding field values. The array is empty if the class has |
| 593 * no static fields. If non-empty, field names are at array offsets 2*n, | 593 * no static fields. If non-empty, field names are at array offsets 2*n, |
| 594 * values at offset 2*n+1. Field values may also be a handle to an | 594 * values at offset 2*n+1. Field values may also be a handle to an |
| 595 * error object if an error was encountered evaluating the field. | 595 * error object if an error was encountered evaluating the field. |
| 596 */ | 596 */ |
| 597 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle target); | 597 DART_EXPORT Dart_Handle Dart_GetStaticFields(Dart_Handle target); |
| 598 | 598 |
| 599 | 599 |
| 600 /** | 600 /** |
| 601 * Returns a handle to the library \library_id. |
| 602 * |
| 603 * Requires there to be a current isolate. |
| 604 * |
| 605 * \return A library handle if the id is valid. |
| 606 */ |
| 607 DART_EXPORT Dart_Handle Dart_GetLibraryFromId(intptr_t library_id); |
| 608 |
| 609 |
| 610 /** |
| 601 * Returns an array containing all variable names and values of | 611 * Returns an array containing all variable names and values of |
| 602 * the given library \library_id. | 612 * the given library \library_id. |
| 603 * | 613 * |
| 604 * Requires there to be a current isolate. | 614 * Requires there to be a current isolate. |
| 605 * | 615 * |
| 606 * \return A handle to an array containing variable names and | 616 * \return A handle to an array containing variable names and |
| 607 * corresponding values. The array is empty if the library has | 617 * corresponding values. The array is empty if the library has |
| 608 * no variables. If non-empty, variable names are at array offsets 2*n, | 618 * no variables. If non-empty, variable names are at array offsets 2*n, |
| 609 * values at offset 2*n+1. Variable values may also be a handle to an | 619 * values at offset 2*n+1. Variable values may also be a handle to an |
| 610 * error object if an error was encountered evaluating the value. | 620 * error object if an error was encountered evaluating the value. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 * \param request A REST-like string, which uses '/' to separate | 674 * \param request A REST-like string, which uses '/' to separate |
| 665 * parameters. The first parameter is always the status type. | 675 * parameters. The first parameter is always the status type. |
| 666 * | 676 * |
| 667 * \return The requested status as a JSON formatted string, with the | 677 * \return The requested status as a JSON formatted string, with the |
| 668 * contents defined by the status plug-in. The caller is responsible | 678 * contents defined by the status plug-in. The caller is responsible |
| 669 * for freeing this string. | 679 * for freeing this string. |
| 670 */ | 680 */ |
| 671 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 681 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 672 | 682 |
| 673 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 683 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |