Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: runtime/include/dart_debugger_api.h

Issue 9117015: Add functions to list library and script urls in an isolate. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | runtime/vm/debugger_api_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
11 11
12 typedef struct _Dart_StackTrace* Dart_StackTrace; 12 typedef struct _Dart_StackTrace* Dart_StackTrace;
13 13
14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame; 14 typedef struct _Dart_ActivationFrame* Dart_ActivationFrame;
15 15
16 typedef void Dart_BreakpointHandler( 16 typedef void Dart_BreakpointHandler(
17 Dart_Breakpoint breakpoint, 17 Dart_Breakpoint breakpoint,
18 Dart_StackTrace stack_trace); 18 Dart_StackTrace stack_trace);
19 19
20 20
21 /** 21 /**
22 * Returns a list of urls (strings) of all the libraries loaded in the
23 * current isolate.
24 *
25 * Requires there to be a current isolate.
26 *
27 * \return A handle to a list of string handles.
28 */
29 DART_EXPORT Dart_Handle Dart_GetLibraryURLs();
30
31
32 /**
33 * Returns a list of urls (strings) of all the scripts loaded in the
34 * given library.
35 *
36 * Requires there to be a current isolate.
37 *
38 * \return A handle to a list of string handles.
39 */
40 DART_EXPORT Dart_Handle Dart_GetScriptURLs(Dart_Handle library_url);
41
42
43 /**
44 * Returns a a string containing the source code of the given script
siva 2012/01/24 18:37:14 a a
hausner 2012/01/24 21:34:42 Done.
45 * in the given library.
46 *
47 * Requires there to be a current isolate.
48 *
49 * \return A handle to string containing the source text if no error
50 * occurs.
51 */
52 DART_EXPORT Dart_Handle Dart_GetScriptSource(
53 Dart_Handle library_url_in,
54 Dart_Handle script_url_in);
55
56 /**
22 * Sets a breakpoint at line \line_number in \script_url, or the closest 57 * Sets a breakpoint at line \line_number in \script_url, or the closest
23 * following line (within the same function) where a breakpoint can be set. 58 * following line (within the same function) where a breakpoint can be set.
24 * 59 *
25 * Requires there to be a current isolate. 60 * Requires there to be a current isolate.
26 * 61 *
27 * \breakpoint If non-null, will point to the breakpoint object 62 * \breakpoint If non-null, will point to the breakpoint object
28 * if a breakpoint was successfully created. 63 * if a breakpoint was successfully created.
29 * 64 *
30 * \return A handle to the True object if no error occurs. 65 * \return A handle to the True object if no error occurs.
31 */ 66 */
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 * \return A handle to the True object if no error occurs. 152 * \return A handle to the True object if no error occurs.
118 */ 153 */
119 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo( 154 DART_EXPORT Dart_Handle Dart_ActivationFrameInfo(
120 Dart_ActivationFrame activation_frame, 155 Dart_ActivationFrame activation_frame,
121 Dart_Handle* function_name, 156 Dart_Handle* function_name,
122 Dart_Handle* script_url, 157 Dart_Handle* script_url,
123 intptr_t* line_number); 158 intptr_t* line_number);
124 159
125 160
126 #endif // INCLUDE_DART_DEBUGGER_API_H_ 161 #endif // INCLUDE_DART_DEBUGGER_API_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger_api_impl.cc » ('j') | runtime/vm/debugger_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698