public static Breakpoint Create(PendingBreakpoint parent, Program program) { return(new Breakpoint { Engine = parent.Engine, Parent = parent, Program = program, Debugger = program.Debugger, Enabled = parent.Enabled, CodeContext = CodeContext.Create( parent.Engine, program, parent.FileName, parent.BeginPosition.dwLine), }); }
int IDebugEngine2.CreatePendingBreakpoint( IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP) { ppPendingBP = null; var pendingBreakpoint = PendingBreakpoint.Create(this, pBPRequest); if (pendingBreakpoint == null) { return(VSConstants.E_FAIL); } ppPendingBP = pendingBreakpoint; pendingBreakpoints.Add(pendingBreakpoint); return(VSConstants.S_OK); }
public static PendingBreakpoint Create(QmlEngine engine, IDebugBreakpointRequest2 request) { var _this = new PendingBreakpoint(); return(_this.Initialize(engine, request) ? _this : null); }
public void DisposePendingBreakpoint(PendingBreakpoint pendingBreakpoint) { pendingBreakpoints.Remove(pendingBreakpoint); pendingBreakpoint.Dispose(); }