Example #1
0
        private void SendContinuationCommand(string command)
        {
            if (_client.State == XdebugClientState.Initialized)
            {
                /* Keep all the breakpoints of the files that are still open. */
                foreach (Breakpoint p in _breakpointMgr.Breakpoints)
                {
                    if (_fileMgr.getFormByRemoteFilename(p.filename) != null)
                    {
                        if (!_breakpointMgr.AddedBreakpoints.Contains(p))
                        {
                            _breakpointMgr.AddedBreakpoints.Add(p);
                        }
                    }
                }
            }

            foreach (Breakpoint b in _breakpointMgr.AddedBreakpoints)
            {
                _client.AddBreakpoint(b);
            }

            foreach (Breakpoint b in _breakpointMgr.RemovedBreakpoints)
            {
                _client.RemoveBreakpoint(b);
            }

            _breakpointMgr.FlushDelta();

            _client.Run(command);
        }