| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 * current isolate. | 68 * current isolate. |
| 69 * | 69 * |
| 70 * Requires there to be a current isolate. | 70 * Requires there to be a current isolate. |
| 71 * | 71 * |
| 72 * \return A handle to a list of library ids. | 72 * \return A handle to a list of library ids. |
| 73 */ | 73 */ |
| 74 DART_EXPORT Dart_Handle Dart_GetLibraryIds(); | 74 DART_EXPORT Dart_Handle Dart_GetLibraryIds(); |
| 75 | 75 |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * Returns true if the debugger can step into code of the given library. |
| 79 * |
| 80 * Requires there to be a current isolate. |
| 81 * |
| 82 * \return A handle to the True object if no error occurs. |
| 83 */ |
| 84 DART_EXPORT Dart_Handle Dart_GetLibraryDebuggable(intptr_t library_id, |
| 85 bool* is_debuggable); |
| 86 |
| 87 |
| 88 /** |
| 89 * Requets that debugging be enabled for the given library. |
| 90 * |
| 91 * Requires there to be a current isolate. |
| 92 * |
| 93 * \return A handle to the True object if no error occurs. |
| 94 */ |
| 95 DART_EXPORT Dart_Handle Dart_SetLibraryDebuggable(intptr_t library_id, |
| 96 bool is_debuggable); |
| 97 |
| 98 |
| 99 /** |
| 78 * Returns a list of urls (strings) of all the scripts loaded in the | 100 * Returns a list of urls (strings) of all the scripts loaded in the |
| 79 * given library. | 101 * given library. |
| 80 * | 102 * |
| 81 * Requires there to be a current isolate. | 103 * Requires there to be a current isolate. |
| 82 * | 104 * |
| 83 * \return A handle to a list of string handles. | 105 * \return A handle to a list of string handles. |
| 84 */ | 106 */ |
| 85 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); | 107 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); |
| 86 | 108 |
| 87 | 109 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 * Returns the url of the library \library_id. | 514 * Returns the url of the library \library_id. |
| 493 * | 515 * |
| 494 * Requires there to be a current isolate. | 516 * Requires there to be a current isolate. |
| 495 * | 517 * |
| 496 * \return A string handle containing the URL of the library. | 518 * \return A string handle containing the URL of the library. |
| 497 */ | 519 */ |
| 498 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); | 520 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); |
| 499 | 521 |
| 500 | 522 |
| 501 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 523 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |