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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 * given library. | 75 * given library. |
76 * | 76 * |
77 * Requires there to be a current isolate. | 77 * Requires there to be a current isolate. |
78 * | 78 * |
79 * \return A handle to a list of string handles. | 79 * \return A handle to a list of string handles. |
80 */ | 80 */ |
81 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); | 81 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url); |
82 | 82 |
83 | 83 |
84 /** | 84 /** |
| 85 * DEPRECATED --- use Dart_ScriptGetSource |
| 86 * |
85 * Returns a string containing the source code of the given script | 87 * Returns a string containing the source code of the given script |
86 * in the given library. | 88 * in the given library. |
87 * | 89 * |
88 * Requires there to be a current isolate. | 90 * Requires there to be a current isolate. |
89 * | 91 * |
90 * \return A handle to string containing the source text if no error | 92 * \return A handle to string containing the source text if no error |
91 * occurs. | 93 * occurs. |
92 */ | 94 */ |
93 DART_EXPORT Dart_Handle Dart_GetScriptSource( | 95 DART_EXPORT Dart_Handle Dart_GetScriptSource( |
94 Dart_Handle library_url_in, | 96 Dart_Handle library_url_in, |
95 Dart_Handle script_url_in); | 97 Dart_Handle script_url_in); |
96 | 98 |
97 | 99 |
98 /** | 100 /** |
| 101 * Returns a string containing the source code of the given script |
| 102 * in the given library. |
| 103 * |
| 104 * Requires there to be a current isolate. |
| 105 * |
| 106 * \return A handle to string containing the source text if no error |
| 107 * occurs. |
| 108 */ |
| 109 DART_EXPORT Dart_Handle Dart_ScriptGetSource( |
| 110 intptr_t library_id, |
| 111 Dart_Handle script_url_in); |
| 112 |
| 113 |
| 114 /** |
99 * Sets a breakpoint at line \line_number in \script_url, or the closest | 115 * Sets a breakpoint at line \line_number in \script_url, or the closest |
100 * following line (within the same function) where a breakpoint can be set. | 116 * following line (within the same function) where a breakpoint can be set. |
101 * | 117 * |
102 * Requires there to be a current isolate. | 118 * Requires there to be a current isolate. |
103 * | 119 * |
104 * \return A handle containing the breakpoint id, which is an integer | 120 * \return A handle containing the breakpoint id, which is an integer |
105 * value, or an error object if a breakpoint could not be set. | 121 * value, or an error object if a breakpoint could not be set. |
106 */ | 122 */ |
107 DART_EXPORT Dart_Handle Dart_SetBreakpoint( | 123 DART_EXPORT Dart_Handle Dart_SetBreakpoint( |
108 Dart_Handle script_url, | 124 Dart_Handle script_url, |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 * Returns the url of the library \library_id. | 447 * Returns the url of the library \library_id. |
432 * | 448 * |
433 * Requires there to be a current isolate. | 449 * Requires there to be a current isolate. |
434 * | 450 * |
435 * \return A string handle containing the URL of the library. | 451 * \return A string handle containing the URL of the library. |
436 */ | 452 */ |
437 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); | 453 DART_EXPORT Dart_Handle Dart_GetLibraryURL(intptr_t library_id); |
438 | 454 |
439 | 455 |
440 #endif // INCLUDE_DART_DEBUGGER_API_H_ | 456 #endif // INCLUDE_DART_DEBUGGER_API_H_ |
OLD | NEW |