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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 * Requires there to be a current isolate. | 465 * Requires there to be a current isolate. |
466 * | 466 * |
467 * \return A handle to an array containing variable names and | 467 * \return A handle to an array containing variable names and |
468 * corresponding values. Variable names are at array offsets 2*n, | 468 * corresponding values. Variable names are at array offsets 2*n, |
469 * values at offset 2*n+1. | 469 * values at offset 2*n+1. |
470 */ | 470 */ |
471 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); | 471 DART_EXPORT Dart_Handle Dart_GetGlobalVariables(intptr_t library_id); |
472 | 472 |
473 | 473 |
474 /** | 474 /** |
| 475 * Execute the expression given in string \expr in the context |
| 476 * of \target. |
| 477 * |
| 478 * Requires there to be a current isolate. |
| 479 * |
| 480 * The expression is evaluated in the context of \target. |
| 481 * If \target is a Dart object, the expression is evaluated as if |
| 482 * it were an instance method of the class of the object. |
| 483 * TODO(hausner): add other execution contexts, e.g. library and class. |
| 484 * |
| 485 * \return A handle to the computed value, or an error object if |
| 486 * the compilation of the expression fails, or if the evaluation throws |
| 487 * an error. |
| 488 */ |
| 489 DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle target, |
| 490 Dart_Handle expr); |
| 491 |
| 492 |
| 493 /** |
475 * Returns the class of the given \object. | 494 * Returns the class of the given \object. |
476 * | 495 * |
477 * Requires there to be a current isolate. | 496 * Requires there to be a current isolate. |
478 * | 497 * |
479 * \return A handle to the class object. | 498 * \return A handle to the class object. |
480 */ | 499 */ |
481 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); | 500 DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object); |
482 | 501 |
483 | 502 |
484 /** | 503 /** |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 * \param request A REST-like string, which uses '/' to separate | 652 * \param request A REST-like string, which uses '/' to separate |
634 * parameters. The first parameter is always the status type. | 653 * parameters. The first parameter is always the status type. |
635 * | 654 * |
636 * \return The requested status as a JSON formatted string, with the | 655 * \return The requested status as a JSON formatted string, with the |
637 * contents defined by the status plug-in. The caller is responsible | 656 * contents defined by the status plug-in. The caller is responsible |
638 * for freeing this string. | 657 * for freeing this string. |
639 */ | 658 */ |
640 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 659 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
641 | 660 |
642 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 661 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |