Example #1
0
 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),
     });
 }
Example #2
0
        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);
        }
Example #3
0
        public static PendingBreakpoint Create(QmlEngine engine, IDebugBreakpointRequest2 request)
        {
            var _this = new PendingBreakpoint();

            return(_this.Initialize(engine, request) ? _this : null);
        }
Example #4
0
 public void DisposePendingBreakpoint(PendingBreakpoint pendingBreakpoint)
 {
     pendingBreakpoints.Remove(pendingBreakpoint);
     pendingBreakpoint.Dispose();
 }