Пример #1
0
 public DebugSession(IDebugSessionContext context, IBreakpointView breakpointView,
                     IControlFlowView controlFlowView, IWatchWindow watchWindow)
 {
     Context         = context;
     BreakpointView  = breakpointView;
     ControlFlowView = controlFlowView;
     WatchWindow     = watchWindow;
 }
Пример #2
0
 /// <param name="batchSize">
 /// Number of children to request per IEnumDebugPropertyInfo2.Next() call. Visual Studio
 /// appears to use 10 for Watch, Locals and Autos windows, 15 for variable tooltips and
 /// int.MaxValue (all children in one batch) for the Registers window.
 /// </param>
 public VariableExpander(VariableEntry.Factory variableEntryFactory,
                         IDebugSessionContext debugSessionContext, int batchSize)
 {
     _variableEntryFactory = variableEntryFactory;
     _debugSessionContext  = debugSessionContext;
     _batchSize            = batchSize;
     _childToIndex         = new Dictionary <IVariableEntryInternal, int>();
     _indexToChild         = new Dictionary <int, IVariableEntryInternal>();
 }
Пример #3
0
 public ProgramStoppedJob(JoinableTaskContext taskContext, IDebugEngine2 debugEngine,
                          IDebugEvent2 evnt, IDebugSessionContext debugSessionContext, IDebugThread2 thread,
                          IFiredBreakpointSetter firedBreakpointSetter)
     : base(taskContext, debugEngine, evnt)
 {
     _debugSessionContext = debugSessionContext;
     _thread = thread;
     _firedBreakpointSetter = firedBreakpointSetter;
 }
Пример #4
0
        public virtual IDebugSessionContext GetDebugSessionContext()
        {
            if (debugSessionContext == null)
            {
                debugSessionContext = new DebugSessionContext();
            }

            return(debugSessionContext);
        }
Пример #5
0
 public Factory(IJobQueue jobQueue,
                RefreshVariableJob.Factory refreshVariableJobFactory,
                IDebugSessionContext debugSessionContext,
                VariableExpander.Factory variableExpanderFactory)
 {
     _jobQueue = jobQueue;
     _refreshVariableJobFactory = refreshVariableJobFactory;
     _debugSessionContext       = debugSessionContext;
     _variableExpanderFactory   = variableExpanderFactory;
 }
Пример #6
0
 public SyncWatchWindow(
     IDebugSessionContext debugSessionContext, VariableEntry.Factory variableEntryFactory)
 {
     _debugSessionContext = debugSessionContext;
     _debugSessionContext.SelectedStackFrameChanged +=
         HandleSelectedStackFrameOrHexadecimalDisplayChanged;
     _debugSessionContext.HexadecimalDisplayChanged +=
         HandleSelectedStackFrameOrHexadecimalDisplayChanged;
     _variableEntryFactory = variableEntryFactory;
 }
Пример #7
0
 public BreakpointView(BindBreakpointJob.Factory bindBreakpointJobFactory,
                       BreakpointDeleteJob.Factory breakpointDeleteJobFactory,
                       IDebugSessionContext debugSessionContext, IJobQueue jobQueue,
                       JoinableTaskContext taskContext)
 {
     _bindBreakpointJobFactory   = bindBreakpointJobFactory;
     _breakpointDeleteJobFactory = breakpointDeleteJobFactory;
     _debugSessionContext        = debugSessionContext;
     _jobQueue    = jobQueue;
     _taskContext = taskContext;
 }
Пример #8
0
 VariableEntry(IVariableDataSource dataSource, IJobQueue jobQueue,
               RefreshVariableJob.Factory refreshVariableJobFactory,
               IDebugSessionContext debugSessionContext,
               IVariableExpander variableExpander)
 {
     _dataSource = dataSource;
     _jobQueue   = jobQueue;
     _refreshVariableJobFactory = refreshVariableJobFactory;
     _debugSessionContext       = debugSessionContext;
     _variableExpander          = variableExpander;
 }
Пример #9
0
 public JobOrchestrator(IDebugSessionContext debugSessionContext, IJobQueue queue,
                        ProgramStoppedJob.Factory programStoppedJobFactory,
                        BroadcastDebugEventJob.Factory broadcastDebugEventJobFactory,
                        ProgramTerminatedJob.Factory programTerminatedJobFactory)
 {
     _debugSessionContext = debugSessionContext;
     _queue = queue;
     _programStoppedJobFactory      = programStoppedJobFactory;
     _broadcastDebugEventJobFactory = broadcastDebugEventJobFactory;
     _programTerminatedJobFactory   = programTerminatedJobFactory;
 }
Пример #10
0
 public LaunchAndAttachFlow(BindPendingBreakpointsHandler bindPendingBreakpoints,
                            Func <IDebugEngine2> createDebugEngine,
                            IDebugEventCallback2 debugEventCallback,
                            IDebugSessionContext debugSessionContext,
                            IProjectAdapter projectAdapter, ITargetAdapter targetAdapter,
                            IJobQueue jobQueue, JoinableTaskContext taskContext,
                            ObserveAndNotifyJob.Factory observeAndNotifyJobFactory,
                            LaunchAndAttachJob.Factory launchAndAttachJobFactory)
 {
     _bindPendingBreakpoints = bindPendingBreakpoints;
     _createDebugEngine      = createDebugEngine;
     _debugEventCallback     = debugEventCallback;
     _debugSessionContext    = debugSessionContext;
     _projectAdapter         = projectAdapter;
     _targetAdapter          = targetAdapter;
     _jobQueue    = jobQueue;
     _taskContext = taskContext;
     _observeAndNotifyJobFactory = observeAndNotifyJobFactory;
     _launchAndAttachJobFactory  = launchAndAttachJobFactory;
 }
Пример #11
0
 public Factory(IDebugSessionContext debugSessionContext, int batchSize)
 {
     _debugSessionContext = debugSessionContext;
     _batchSize           = batchSize;
 }
Пример #12
0
 public ProgramStoppedJob Create(IDebugEngine2 debugEngine, IDebugEvent2 evnt,
                                 IDebugSessionContext debugSessionContext, IDebugThread2 thread)
 {
     return(new ProgramStoppedJob(taskContext, debugEngine, evnt, debugSessionContext,
                                  thread, _firedBreakpointSetter));
 }
Пример #13
0
 public ControlFlowView(IDebugSessionContext debugSessionContext)
 {
     _debugSessionContext = debugSessionContext;
 }
Пример #14
0
 public ProgramTerminatedJob(JoinableTaskContext taskContext, IDebugEngine2 debugEngine,
                             IDebugEvent2 evnt, IDebugSessionContext debugSessionContext)
     : base(taskContext, debugEngine, evnt)
 {
     _debugSessionContext = debugSessionContext;
 }
Пример #15
0
 public ProgramTerminatedJob Create(IDebugEngine2 debugEngine, IDebugEvent2 evnt,
                                    IDebugSessionContext debugSessionContext) =>
 new ProgramTerminatedJob(taskContext, debugEngine, evnt, debugSessionContext);