Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 62 lines (46 sloc) 1.557 kb
cf73725 experimental debugger
Laurent Sansonetti authored
1 /*
2 * MacRuby Debugger Connector.
3 *
4 * This is an interface to the MacRuby runtime when running in debug mode.
5 * It is used by MacRuby debugger clients, such as macrubyd or Xcode.
6 * This file when compiled separately must be compiled with garbage collection
7 * enabled.
8 *
9 * This file is covered by the Ruby license. See COPYING for more details.
7d7d3e8 @ferrous26 Change ownership to The MacRuby Team and update copyrights
ferrous26 authored
10 *
11 * Copyright (C) 2012, The MacRuby Team. All rights reserved.
9595725 update copyrights to 2011
Laurent Sansonetti authored
12 * Copyright (C) 2010-2011, Apple Inc. All rights reserved.
cf73725 experimental debugger
Laurent Sansonetti authored
13 */
14
15 #import <Foundation/Foundation.h>
16
17 typedef unsigned int breakpoint_t;
18
19 @interface MacRubyDebuggerConnector : NSObject
20 {
fb11b0a fixed internal debugger interpreter path
Laurent Sansonetti authored
21 NSString *_interpreterPath;
cf73725 experimental debugger
Laurent Sansonetti authored
22 NSMutableArray *_arguments;
fb11b0a fixed internal debugger interpreter path
Laurent Sansonetti authored
23 NSString *_socketPath;
cf73725 experimental debugger
Laurent Sansonetti authored
24 NSTask *_task;
25 NSFileHandle *_socket;
26 NSString *_location;
27 }
28
fb11b0a fixed internal debugger interpreter path
Laurent Sansonetti authored
29 - (id)initWithInterpreterPath:(NSString *)path arguments:(NSArray *)arguments;
cf73725 experimental debugger
Laurent Sansonetti authored
30
31 // Execution control.
32
33 - (void)startExecution;
34 - (void)continueExecution;
35 - (void)stepExecution;
36 - (void)stopExecution;
37
38 // Current state.
39
40 - (NSString *)location;
41 - (NSArray *)localVariables;
42 - (NSArray *)backtrace;
43 - (void)setFrame:(unsigned int)frame;
44
45 // Breakpoints.
46
47 - (breakpoint_t)addBreakPointAtPath:(NSString *)path line:(unsigned int)line
48 condition:(NSString *)condition;
49
50 - (void)enableBreakPoint:(breakpoint_t)bp;
51 - (void)disableBreakPoint:(breakpoint_t)bp;
52 - (void)deleteBreakPoint:(breakpoint_t)bp;
53 - (void)setCondition:(NSString *)condition forBreakPoint:(breakpoint_t)bp;
54
55 - (NSArray *)allBreakPoints;
56
57 // Context evaluation.
58
59 - (NSString *)evaluateExpression:(NSString *)expression;
60
61 @end
Something went wrong with that request. Please try again.