[self connect];
}
-/**
- * Creates an entirely new stack and returns it as an array of StackFrame objects.
- */
-- (NSArray*)getCurrentStack
-{
- NSMutableArray* stack = [NSMutableArray array];
- NSLog(@"NOTIMPLEMENTED(): %s", _cmd);
- return stack;
-}
-
/**
* Tells the debugger to continue running the script. Returns the current stack frame.
*/
- (void)updateSourceViewer;
- (void)updateStackViewer;
- (void)expandVariables;
-- (void)reloadStack;
@end
@implementation DebuggerController
}
}
-/**
- * This updates the entire stack. Xdebug is queried to get the stack, non-shifted
- * frames are reused and new ones are fetched.
- */
-- (void)reloadStack
-{
- NSArray* stack = [connection getCurrentStack];
- if (stack == nil)
- return;
-
- [stackController.stack removeAllObjects];
- [stackController.stack addObjectsFromArray:stack];
- [self updateStackViewer];
- [self updateSourceViewer];
-}
-
#pragma mark BSSourceView Delegate
/**