| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 * | 151 * |
| 152 * \return A handle to string containing the source text if no error | 152 * \return A handle to string containing the source text if no error |
| 153 * occurs. | 153 * occurs. |
| 154 */ | 154 */ |
| 155 DART_EXPORT Dart_Handle Dart_ScriptGetSource( | 155 DART_EXPORT Dart_Handle Dart_ScriptGetSource( |
| 156 intptr_t library_id, | 156 intptr_t library_id, |
| 157 Dart_Handle script_url_in); | 157 Dart_Handle script_url_in); |
| 158 | 158 |
| 159 | 159 |
| 160 /** | 160 /** |
| 161 * Returns a string containing a generated source code of the given script |
| 162 * in the given library. This is essentially used to pretty print dart code |
| 163 * generated from any tool (e.g: dart2dart). |
| 164 * |
| 165 * Requires there to be a current isolate. |
| 166 * |
| 167 * \return A handle to string containing the source text if no error |
| 168 * occurs. |
| 169 */ |
| 170 DART_EXPORT Dart_Handle Dart_GenerateScriptSource(Dart_Handle library_url_in, |
| 171 Dart_Handle script_url_in); |
| 172 |
| 173 |
| 174 /** |
| 161 * Sets a breakpoint at line \line_number in \script_url, or the closest | 175 * Sets a breakpoint at line \line_number in \script_url, or the closest |
| 162 * following line (within the same function) where a breakpoint can be set. | 176 * following line (within the same function) where a breakpoint can be set. |
| 163 * | 177 * |
| 164 * Requires there to be a current isolate. | 178 * Requires there to be a current isolate. |
| 165 * | 179 * |
| 166 * \return A handle containing the breakpoint id, which is an integer | 180 * \return A handle containing the breakpoint id, which is an integer |
| 167 * value, or an error object if a breakpoint could not be set. | 181 * value, or an error object if a breakpoint could not be set. |
| 168 */ | 182 */ |
| 169 DART_EXPORT Dart_Handle Dart_SetBreakpoint( | 183 DART_EXPORT Dart_Handle Dart_SetBreakpoint( |
| 170 Dart_Handle script_url, | 184 Dart_Handle script_url, |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 * \param request A REST-like string, which uses '/' to separate | 610 * \param request A REST-like string, which uses '/' to separate |
| 597 * parameters. The first parameter is always the status type. | 611 * parameters. The first parameter is always the status type. |
| 598 * | 612 * |
| 599 * \return The requested status as a JSON formatted string, with the | 613 * \return The requested status as a JSON formatted string, with the |
| 600 * contents defined by the status plug-in. The caller is responsible | 614 * contents defined by the status plug-in. The caller is responsible |
| 601 * for freeing this string. | 615 * for freeing this string. |
| 602 */ | 616 */ |
| 603 DART_EXPORT char* Dart_GetVmStatus(const char* request); | 617 DART_EXPORT char* Dart_GetVmStatus(const char* request); |
| 604 | 618 |
| 605 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 619 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
| OLD | NEW |