コード例 #1
0
        public void DeleteEventRequest(IEventRequest request)
        {
            Contract.Requires <ArgumentNullException>(request != null, "request");
            Contract.Requires <VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(request.GetVirtualMachine()));

            throw new NotImplementedException();
        }
コード例 #2
0
 private static void SetEventProperties(DebugEvent debugEvent, IEventRequest request, SuspendPolicy suspendPolicy, IVirtualMachine virtualMachine, IThreadReference thread, bool manualResume)
 {
     Contract.Requires <ArgumentNullException>(debugEvent != null, "debugEvent");
     debugEvent.Properties.AddProperty(typeof(IEventRequest), request);
     debugEvent.Properties.AddProperty(typeof(SuspendPolicy), suspendPolicy);
     debugEvent.Properties.AddProperty(typeof(IVirtualMachine), virtualMachine);
     debugEvent.Properties.AddProperty(typeof(IThreadReference), thread);
     debugEvent.Properties.AddProperty("ManualResume", manualResume);
 }
コード例 #3
0
ファイル: VirtualMachine.cs プロジェクト: soulhez/debugger
        public void Attach(int port)
        {
            LogProvider.Log("Attempting connection at port {0}...", port);
            MDS.VirtualMachineManager.DefaultTimeout = 500;
            vm = MDS.VirtualMachineManager.Connect(new IPEndPoint(IPAddress.Loopback, port));
            vm.EnableEvents(
                MDS.EventType.AppDomainCreate,
                MDS.EventType.AppDomainUnload,
                MDS.EventType.VMStart,
                MDS.EventType.VMDeath,
                MDS.EventType.VMDisconnect,
                MDS.EventType.AssemblyLoad,
                MDS.EventType.AssemblyUnload,
                MDS.EventType.ThreadStart,
                MDS.EventType.ThreadDeath
                );

            methodEntryRequest = new EventRequest(vm.CreateMethodEntryRequest());
            QueueUserWorkItem(EventLoop);
        }
コード例 #4
0
ファイル: JavaDebugProgram.cs プロジェクト: Kav2018/JavaForVS
 private static void SetEventProperties(DebugEvent debugEvent, IEventRequest request, SuspendPolicy suspendPolicy, IVirtualMachine virtualMachine, IThreadReference thread, bool manualResume)
 {
     Contract.Requires<ArgumentNullException>(debugEvent != null, "debugEvent");
     debugEvent.Properties.AddProperty(typeof(IEventRequest), request);
     debugEvent.Properties.AddProperty(typeof(SuspendPolicy), suspendPolicy);
     debugEvent.Properties.AddProperty(typeof(IVirtualMachine), virtualMachine);
     debugEvent.Properties.AddProperty(typeof(IThreadReference), thread);
     debugEvent.Properties.AddProperty("ManualResume", manualResume);
 }
コード例 #5
0
ファイル: Event.cs プロジェクト: soulhez/debugger
 public Event(IThreadMirror thread) : base(null)
 {
     threadMirror = thread;
     request      = null;
 }
コード例 #6
0
ファイル: Event.cs プロジェクト: shana/debugger
 public Event(IThreadMirror thread)
     : base(null)
 {
     threadMirror = thread;
     request = null;
 }
コード例 #7
0
 public void DeleteEventRequest(IEventRequest request)
 {
     throw new NotImplementedException();
 }
コード例 #8
0
 /// <summary>
 /// Create an instance of the event request builder class.
 ///
 /// Initialize the event request to build.
 /// </summary>
 public EventRequestBuilder()
 {
     this.eventRequest = new EventRequest();
 }
コード例 #9
0
ファイル: VirtualMachine.cs プロジェクト: Smilediver/debugger
        public void Attach(int port)
        {
            LogProvider.Log ("Attempting connection at port {0}...", port);
            vm = MDS.VirtualMachineManager.Connect (new IPEndPoint (IPAddress.Loopback, port));
            vm.EnableEvents (
                MDS.EventType.AppDomainCreate,
                MDS.EventType.AppDomainUnload,
                MDS.EventType.VMStart,
                MDS.EventType.VMDeath,
                MDS.EventType.VMDisconnect,
                MDS.EventType.AssemblyLoad,
                MDS.EventType.AssemblyUnload
            );

            methodEntryRequest = new EventRequest (vm.CreateMethodEntryRequest ());
            QueueUserWorkItem (EventLoop);
        }
コード例 #10
0
        public void DeleteEventRequest(IEventRequest request)
        {
            Contract.Requires<ArgumentNullException>(request != null, "request");
            Contract.Requires<VirtualMachineMismatchException>(this.GetVirtualMachine().Equals(request.GetVirtualMachine()));

            throw new NotImplementedException();
        }
コード例 #11
0
 public void DeleteEventRequest(IEventRequest request)
 {
     throw new NotImplementedException();
 }