• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ICorDebugAppDomain类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ICorDebugAppDomain的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugAppDomain类的具体用法?C# ICorDebugAppDomain怎么用?C# ICorDebugAppDomain使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ICorDebugAppDomain类属于命名空间,在下文中一共展示了ICorDebugAppDomain类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Break

        public void Break(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
        {
            EnterCallback(PausedReason.Break, "Break", pThread);

            pauseOnNextExit = true;
            ExitCallback();
        }
开发者ID:BahNahNah,项目名称:dnSpy,代码行数:7,代码来源:ManagedCallback.cs


示例2: Breakpoint

 public virtual void Breakpoint(
     ICorDebugAppDomain appDomain, 
     ICorDebugThread thread, 
     ICorDebugBreakpoint breakpoint)
 {
     this.DefaultHandler(appDomain);
 }
开发者ID:krabicezpapundeklu,项目名称:SharpDiag,代码行数:7,代码来源:ManagedCallbackBase.cs


示例3: Breakpoint

		// Do not pass the pBreakpoint parameter as ICorDebugBreakpoint - marshaling of it fails in .NET 1.1
		public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, IntPtr pBreakpoint)
		{
			ManagedCallback managedCallback = GetProcessCallbackInterface(pAppDomain);
			if (managedCallback != null) {
				managedCallback.Breakpoint(pAppDomain, pThread, pBreakpoint);
			}
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:8,代码来源:ManagedCallbackSwitch.cs


示例4: StepComplete

		public void StepComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugStepper pStepper, CorDebugStepReason reason)
		{
			ManagedCallback managedCallback = GetProcessCallbackInterface(pAppDomain);
			if (managedCallback != null) {
				managedCallback.StepComplete(pAppDomain, pThread, pStepper, reason);
			}
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:7,代码来源:ManagedCallbackSwitch.cs


示例5: GetProcessWrapper

        private DebuggeeProcess GetProcessWrapper(ICorDebugAppDomain appDomain)
        {
            ICorDebugProcess process;
            appDomain.GetProcess(out process);
            return GetProcessWrapper(process);

        }
开发者ID:die-Deutsche-Orthopaedie,项目名称:LiteDevelop,代码行数:7,代码来源:ManagedCallback.cs


示例6: DnAppDomain

		internal DnAppDomain(DnProcess ownerProcess, ICorDebugAppDomain appDomain, int incrementedId) {
			this.ownerProcess = ownerProcess;
			this.assemblies = new DebuggerCollection<ICorDebugAssembly, DnAssembly>(CreateAssembly);
			this.appDomain = new CorAppDomain(appDomain);
			this.incrementedId = incrementedId;
			NameChanged();
		}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:7,代码来源:DnAppDomain.cs


示例7: CorDebugAppDomain

 public CorDebugAppDomain(ICorDebugAppDomain _appdomain) {
     m_appdomain = _appdomain;
     uint size = 0;
     m_appdomain.GetName(0, out size, null);
     StringBuilder name = new StringBuilder((int)size);
     _appdomain.GetName((uint)name.Capacity, out size, name);
     Name = name.ToString();
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:8,代码来源:CorDebugAppDomain.cs


示例8: Breakpoint

 public void Breakpoint(
     ICorDebugAppDomain pAppDomain, 
     ICorDebugThread pThread, 
     ICorDebugBreakpoint pBreakpoint)
 {
     m_listner.PostBreakPoint(new CorThread(pThread));
     //controller.Continue(0);
 }
开发者ID:balaramaraju,项目名称:DotNetProcessViewer,代码行数:8,代码来源:ManagedCallbacks.cs


示例9: EditAndContinueRemap

 public virtual void EditAndContinueRemap(
     ICorDebugAppDomain appDomain, 
     ICorDebugThread thread, 
     ICorDebugFunction function, 
     bool accurate)
 {
     this.DefaultHandler(appDomain);
 }
开发者ID:krabicezpapundeklu,项目名称:SharpDiag,代码行数:8,代码来源:ManagedCallbackBase.cs


示例10: DnAppDomain

		internal DnAppDomain(DnProcess ownerProcess, ICorDebugAppDomain appDomain, int uniqueId, int uniqueIdProcess) {
			Process = ownerProcess;
			assemblies = new DebuggerCollection<ICorDebugAssembly, DnAssembly>(CreateAssembly);
			CorAppDomain = new CorAppDomain(appDomain);
			UniqueId = uniqueId;
			UniqueIdProcess = uniqueIdProcess;
			NameChanged();
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:8,代码来源:DnAppDomain.cs


示例11: CreateAppDomain

        public void CreateAppDomain(ICorDebugProcess pProcess, ICorDebugAppDomain pAppDomain)
        {
            var domain = new DebugDomain(null, pAppDomain);
            Logger.WriteLine("App domain {0} created", domain.Name);

            pAppDomain.Attach();

            pProcess.Continue(0);
        }
开发者ID:anvaka,项目名称:slinject,代码行数:9,代码来源:ManagedCallback.cs


示例12: Breakpoint

        public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint)
        {
            var handler = OnBreakpoint;
            if (handler != null)
            {
                handler(this, new DebuggerBreakpointEventArgs(pThread, pBreakpoint));
            }

            pAppDomain.Continue(0);
        }
开发者ID:anvaka,项目名称:slinject,代码行数:10,代码来源:ManagedCallback.cs


示例13: HandleEvalEvent

        private void HandleEvalEvent(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugEval pEval)
        {
            var domain = GetProcessWrapper(pAppDomain).GetAppDomain(pAppDomain);
            var thread = domain.GetThread(pThread);
            var eval = Session.ComInstanceCollector.GetWrapper<RuntimeEvaluation>(pEval);

            var eventArgs = new DebuggerEventArgs(domain, true);
            eval.DispatchEvaluationCompleted(eventArgs);
            FinalizeEvent(eventArgs);
        }
开发者ID:die-Deutsche-Orthopaedie,项目名称:LiteDevelop,代码行数:10,代码来源:ManagedCallback.cs


示例14: MoveNext

        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var a = new ICorDebugAppDomain[1];
            uint c = 0;
            int r = m_enum.Next((uint) a.Length, a, out c);
            if (r == 0 && c == 1) // S_OK && we got 1 new element
                m_ad = new CorAppDomain(a[0]);
            else
                m_ad = null;
            return m_ad != null;
        }
开发者ID:o2platform,项目名称:O2.Platform.Projects.Misc_and_Legacy,代码行数:17,代码来源:AppDomainEnumerator.cs


示例15: GetProcessCallbackInterface

		public ManagedCallback GetProcessCallbackInterface(string name, ICorDebugAppDomain pAppDomain)
		{
			ICorDebugProcess pProcess;
			try {
				pProcess = pAppDomain.Process;
			} catch (COMException e) {
				debugger.TraceMessage("Ignoring callback \"" + name + "\": " + e.Message);
				return null;
			}
			return GetProcessCallbackInterface(name, pProcess);
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:11,代码来源:ManagedCallbackSwitch.cs


示例16: FunctionRemapOpportunity

        /// <summary>
        /// Finds appropriete SequncePointMap instances and builds SequencePointRemapper, gets new IL offset and call RemapFunction.
        /// </summary>
        public void FunctionRemapOpportunity(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
        {
            ICorDebugILFrame2 frame = (ICorDebugILFrame2) pThread.GetActiveFrame();

            uint nToken = pOldFunction.GetToken();

            SequencePointRemapper remapper;
            if(!remappers.TryGetValue(nToken,out remapper)){
                throw new KeyNotFoundException("Methods sequence points not found.");
            }
            frame.__RemapFunction(remapper.TranslateILOffset(oldILOffset));
        }
开发者ID:maresja1,项目名称:SDenc,代码行数:15,代码来源:FunctionRemapper.cs


示例17: Breakpoint

        // Warning! Marshaing of ICorBreakpoint fails in .NET 1.1
        public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint corBreakpoint)
        {
            EnterCallback(PausedReason.Breakpoint, "Breakpoint", pThread);

            Breakpoint breakpoint = process.Debugger.Breakpoints[corBreakpoint];
            // The event will be risen outside the callback
            process.BreakpointHitEventQueue.Enqueue(breakpoint);

            pauseOnNextExit = true;

            ExitCallback();
        }
开发者ID:BahNahNah,项目名称:dnSpy,代码行数:13,代码来源:ManagedCallback.cs


示例18: LoadDomains

        private IList<DebugDomain> LoadDomains()
        {
            ICorDebugAppDomainEnum domainsEnum;
            _debugProcess.EnumerateAppDomains(out domainsEnum);

            uint domainsCount;
            domainsEnum.GetCount(out domainsCount);

            ICorDebugAppDomain[] domains = new ICorDebugAppDomain[domainsCount];
            uint domainsFetched;
            domainsEnum.Next(domainsCount, domains, out domainsFetched);

            var list = new List<DebugDomain>((int)domainsFetched);

            for (int i = 0; i < domainsFetched; i++)
            {
                list.Add(new DebugDomain(_debugEngine, domains[i]));
            }

            return list;
        }
开发者ID:anvaka,项目名称:slinject,代码行数:21,代码来源:DebugProcess.cs


示例19: CorBreakpointSetErrorEventArgs

 void ICorDebugManagedCallback.BreakpointSetError(
                                ICorDebugAppDomain appDomain,
                                ICorDebugThread thread,
                                ICorDebugBreakpoint breakpoint,
                                UInt32 errorCode)
 {
     HandleEvent(ManagedCallbackType.OnBreakpointSetError,
                       new CorBreakpointSetErrorEventArgs(appDomain == null ? null : new CorAppDomain(appDomain),
                                                 thread == null ? null : new CorThread(thread),
                                                 null, 
                                                 (int)errorCode,
                                                 ManagedCallbackType.OnBreakpointSetError));
 }
开发者ID:fedorw,项目名称:monodevelop,代码行数:13,代码来源:Debugger.cs


示例20:

 void ICorDebugManagedCallback.EditAndContinueRemap(
                                  ICorDebugAppDomain appDomain,
                                  ICorDebugThread thread,
                                  ICorDebugFunction managedFunction,
                                  int isAccurate)
 {
     Debug.Assert(false); //OBSOLETE callback
 }
开发者ID:fedorw,项目名称:monodevelop,代码行数:8,代码来源:Debugger.cs



注:本文中的ICorDebugAppDomain类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ICorDebugFunction类代码示例发布时间:2022-05-24
下一篇:
C# ICopyable类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap