58{
59 NSString *debugOXPPath =
nil;
60 NSDictionary *debugSettings =
nil;
61 NSString *consoleHost =
nil;
62 unsigned short consolePort = 0;
63 id<OODebuggerInterface> debugger =
nil;
64 BOOL activateDebugConsole = NO;
65
66
67 debugSettings = [
ResourceManager dictionaryFromFilesNamed:
@"debugConfig.plist"
68 inFolder:@"Config"
70 cache:NO];
71
72
73 debugOXPPath = [
ResourceManager pathForFileNamed:
@"DebugOXPLocatorBeacon.magic" inFolder:
@"nil"];
74 if (debugOXPPath !=
nil)
75 {
76
78
79 consoleHost = [debugSettings oo_stringForKey:@"console-host"];
80 consolePort = [debugSettings oo_unsignedShortForKey:@"console-port"];
81
82
84 {
86 [[
OODebugMonitor sharedDebugMonitor] setUsingPlugInController:YES];
87 }
88
89
91 {
93 port:consolePort];
94 [debugger autorelease];
96 }
97
98 activateDebugConsole = (debugger !=
nil);
99 }
100
101 if (!activateDebugConsole)
102 {
103 activateDebugConsole = [debugSettings oo_boolForKey:@"always-load-debug-console"];
104 }
105
106
107 if (activateDebugConsole)
108 {
109
112 }
113}
static id sDebugPlugInController
#define LoadDebugPlugIn()