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

C# Debugger类代码示例

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

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



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

示例1: LogError

 protected void LogError(object message, Debugger.LogTypes logType = Debugger.LogTypes.Default, bool save = true)
 {
     if (log)
     {
         Debugger.LogError(message, gameObject, logType, save);
     }
 }
开发者ID:syeager,项目名称:Space-CUBEs,代码行数:7,代码来源:MonoBase.cs


示例2: RegistersPanel

        public RegistersPanel(Debugger debugger, RegisterClass registerClass)
        {
            InitializeComponent();

              this.debugger = debugger;
              this.registerClass = registerClass;
              switch (registerClass) {
              case RegisterClass.GuestGeneralPurpose:
            this.Text = "GPR";
            break;
              case RegisterClass.GuestFloatingPoint:
            this.Text = "FPR";
            break;
              case RegisterClass.GuestVector:
            this.Text = "VR";
            break;
              case RegisterClass.HostGeneralPurpose:
            this.Text = "x64";
            break;
              case RegisterClass.HostAvx:
            this.Text = "AVX";
            break;
              default:
            System.Diagnostics.Debug.Fail("Unhandled case: " + registerClass);
            break;
              }
        }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:27,代码来源:RegistersPanel.cs


示例3: DebugInspector

 public DebugInspector( Debugger debugger )
 {
     Debug.Assert( debugger != null );
     if( debugger == null )
         throw new ArgumentNullException( "debugger" );
     _debugger = debugger;
 }
开发者ID:BradFuller,项目名称:pspplayer,代码行数:7,代码来源:DebugInspector.cs


示例4: Debugger

        public Debugger(ProcessStartInfo info, bool breakInMain)
        {
            Contract.Requires(info != null, "info is null");

            ActiveObjects.Add(this);
            m_thread = new DebuggerThread(this, breakInMain);

            Boss boss = ObjectModel.Create("Application");
            m_transcript = boss.Get<ITranscript>();

            StepBy = StepSize.Line;
            var options = new LaunchOptions();
            //			options.AgentArgs = "loglevel=1,logfile='/Users/jessejones/Source/Continuum/sdb.log'";

            // We do this lame assignment to a static so that OnLaunched can be made a static
            // method. Mono 2.6.7 doesn't GC asynchronously invoked delegates in a timely fashion
            // (tho it does appear to collect them if more than ten stack up).
            ms_debugger = this;
            Unused.Value = VirtualMachineManager.BeginLaunch(info, Debugger.OnLaunched, options);

            Broadcaster.Register("added breakpoint", this);
            Broadcaster.Register("removing breakpoint", this);
            Broadcaster.Register("toggled exceptions", this);

            ms_running = true;
        }
开发者ID:andyhebear,项目名称:Continuum,代码行数:26,代码来源:Debugger.cs


示例5: Awake

    void Awake()
    {
        LevelIndex = Application.loadedLevel;
        instance = this;
        if (controlsManager == null) {
            GameObject newCM = new GameObject("Control_Manager");
            controlsManager = newCM.AddComponent<ControlsManager>();
            newCM.transform.SetParent(this.transform);
        }
        // GET THE SCORE MANAGER //
        if (scoreManager == null) {
            GameObject newScM = new GameObject("Score_Manager");
            scoreManager = newScM.AddComponent<ScoreManager>();
            newScM.transform.SetParent(this.transform);
        }

        // LETS SETUP A SCENE //
        if (sceneManager == null) {
            GameObject newSM = new GameObject("Scene_Manager");
            sceneManager = newSM.AddComponent<SceneManager>();
            newSM.transform.SetParent(this.transform);
        }
        // link the debugger //
        GameObject dbg = GameObject.Find ("Debugger");
        debugger = dbg.GetComponent<Debugger> ();
    }
开发者ID:tensus2000,项目名称:Magnaball_1,代码行数:26,代码来源:GameStateManager.cs


示例6: ThreadManager

        internal ThreadManager(Debugger debugger)
        {
            this.debugger = debugger;

            thread_hash = Hashtable.Synchronized (new Hashtable ());
            engine_hash = Hashtable.Synchronized (new Hashtable ());
            processes = ArrayList.Synchronized (new ArrayList ());

            pending_events = Hashtable.Synchronized (new Hashtable ());

            last_pending_sigstop = DateTime.Now;
            pending_sigstops = new Dictionary<int,DateTime> ();

            address_domain = AddressDomain.Global;

            wait_event = new ST.AutoResetEvent (false);
            engine_event = new ST.ManualResetEvent (true);
            ready_event = new ST.ManualResetEvent (false);

            event_queue = new DebuggerEventQueue ("event_queue");
            event_queue.DebugFlags = DebugFlags.Wait;

            mono_debugger_server_global_init ();

            wait_thread = new ST.Thread (new ST.ThreadStart (start_wait_thread));
            wait_thread.IsBackground = true;
            wait_thread.Start ();

            inferior_thread = new ST.Thread (new ST.ThreadStart (start_inferior));
            inferior_thread.IsBackground = true;
            inferior_thread.Start ();

            ready_event.WaitOne ();
        }
开发者ID:baulig,项目名称:debugger,代码行数:34,代码来源:ThreadManager.cs


示例7: Load

        public override Program Load(Address addrLoad)
        {
            // First load the file as a PE Executable. This gives us a (writeable) image and 
            // the packed entry point.
            var pe = CreatePeImageLoader();
            var program = pe.Load(pe.PreferredBaseAddress);
            var rr = pe.Relocate(pe.PreferredBaseAddress);
            this.Image = program.Image;
            this.ImageMap = program.ImageMap;
            this.Architecture = (IntelArchitecture)program.Architecture;

            var win32 = new Win32Emulator(program.Image, program.Platform, program.ImportReferences);
            var state = (X86State)program.Architecture.CreateProcessorState();
            var emu = new X86Emulator((IntelArchitecture) program.Architecture, program.Image, win32);
            this.debugger = new Debugger(emu);
            this.scriptInterpreter = new OllyLang();
            this.scriptInterpreter.Host = new Host(this);
            this.scriptInterpreter.Debugger = this.debugger;
            emu.InstructionPointer = rr.EntryPoints[0].Address;
            emu.WriteRegister(Registers.esp, (uint)Image.BaseAddress.ToLinear() + 0x1000 - 4u);
            emu.BeforeStart += emu_BeforeStart;
            emu.ExceptionRaised += emu_ExceptionRaised;

            // Load the script.
            LoadScript(Argument, scriptInterpreter.script);

            emu.Start();

            foreach (var ic in win32.InterceptedCalls)
            {
                program.InterceptedCalls.Add(Address.Ptr32(ic.Key), ic.Value);
            }
            return program;
        }
开发者ID:killbug2004,项目名称:reko,代码行数:34,代码来源:OdbgScriptLoader.cs


示例8: Eval

		public Eval(Debugger debugger, IAppDomain appDomain, DBG.DnEval eval) {
			if (appDomain == null)
				throw new InvalidOperationException("The thread has no owner AppDomain and can't be used to evaluate funcs");
			this.debugger = debugger;
			this.appDomain = appDomain;
			this.eval = eval;
			this.eval.SetNoTotalTimeout();
		}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:Eval.cs


示例9: ThreadsPanel

        public ThreadsPanel(Debugger debugger)
        {
            InitializeComponent();
              this.debugger = debugger;

              debugger.ThreadList.Changed += UpdateThreadList;
              UpdateThreadList(debugger.ThreadList);
        }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:8,代码来源:ThreadsPanel.cs


示例10: ILBreakpoint

		public ILBreakpoint(Debugger debugger, ModuleId module, uint token, uint offset, Func<IILBreakpoint, bool> cond) {
			this.debugger = debugger;
			Module = module;
			Token = token;
			Offset = offset;
			this.cond = cond ?? condAlwaysTrue;
			isEnabled = true;
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:8,代码来源:ILBreakpoint.cs


示例11: ModulesPanel

        public ModulesPanel(Debugger debugger)
        {
            InitializeComponent();
              this.debugger = debugger;

              debugger.ModuleList.Changed += UpdateModulesList;
              UpdateModulesList(debugger.ModuleList);
        }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:8,代码来源:ModulesPanel.cs


示例12: BreakpointsPanel

        public BreakpointsPanel(Debugger debugger)
        {
            InitializeComponent();
              this.debugger = debugger;

              debugger.BreakpointList.Changed += UpdateBreakpointsList;
              UpdateBreakpointsList(debugger.BreakpointList);
        }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:8,代码来源:BreakpointsPanel.cs


示例13: MainWindow

 /// <summary>
 /// Constructor
 /// </summary>
 public MainWindow()
 {
     List<SolidColorBrush> colorsList = ((Array)FindResource("Colors")).Cast<SolidColorBrush>().ToList();
     List<BitmapImage> iconList = ((Array)FindResource("Icons")).Cast<BitmapImage>().ToList();           
     InitializeComponent();
     confi = new Configuration(iconList,colorsList);
     Debugger d = new Debugger(Debugger.ENVIORMENT.DEVELOPMENT);
     //Debugger d = new Debugger(Debugger.ENVIORMENT.PRODUCTION);
 }
开发者ID:SBreso,项目名称:CuatroEnRaya,代码行数:12,代码来源:MainWindow.xaml.cs


示例14: GraphicalWatchControl

        /// <summary>
        /// Initializes a new instance of the <see cref="GraphicalWatchControl"/> class.
        /// </summary>
        public GraphicalWatchControl()
        {
            this.InitializeComponent();

            m_dte = (DTE2)ServiceProvider.GlobalProvider.GetService(typeof(DTE));
            m_debugger = m_dte.Debugger;
            m_debuggerEvents = m_dte.Events.DebuggerEvents;
            m_debuggerEvents.OnEnterBreakMode += DebuggerEvents_OnEnterBreakMode;
        }
开发者ID:bowlofstew,项目名称:graphical-debugging,代码行数:12,代码来源:GraphicalWatchControl.xaml.cs


示例15: Create

		public static ObjectValue Create(Debugger.Value value, int index, Dictionary<string, MemberInfo> memberFromName)
		{
			ObjectValue result = new ObjectValue(index, memberFromName);
			
			// remember PermanentReference for expanding IEnumerable
			Value permanentReference = value.GetPermanentReference();
			result.PermanentReference = permanentReference;
			
			return result;
		}
开发者ID:hpsa,项目名称:SharpDevelop,代码行数:10,代码来源:ObjectValue.cs


示例16: FunctionsPanel

        public FunctionsPanel(Debugger debugger)
        {
            InitializeComponent();
              this.debugger = debugger;

              RefreshFunctionList();

              debugger.ModuleList.Changed += UpdateModulesList;
              UpdateModulesList(debugger.ModuleList);
        }
开发者ID:SaviorXTanren,项目名称:xenia,代码行数:10,代码来源:FunctionsPanel.cs


示例17: Wrap

 public static ICorPublishProcess Wrap(Debugger.Interop.CorPub.ICorPublishProcess objectToWrap)
 {
     if ((objectToWrap != null))
        {
     return new ICorPublishProcess(objectToWrap);
        } else
        {
     return null;
        }
 }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:10,代码来源:ICorPublishProcess.cs


示例18: Cli

        /// <summary>
        /// Creates a Command line interface for the specified debugger.
        /// </summary>
        /// <param name="debugger"></param>
        public Cli(Debugger debugger)
        {
            if (debugger == null) throw new ArgumentNullException("debugger");

            Debugger = debugger;
            Debugger.ExecutionInterrupt += new ExecutionInterruptHandler(ExecutionInterrupted);

            Done = new AutoResetEvent(false);
            SourceFatcher = new SourceFatcher();
        }
开发者ID:lazanet,项目名称:messylab,代码行数:14,代码来源:Cli.cs


示例19: DebuggerType

 public DebuggerType(Debugger debugger, CorType type, uint token = 0)
 {
     debugger.Dispatcher.VerifyAccess();
     this.debugger = debugger;
     this.type = type;
     this.hashCode = type.GetHashCode();
     this.elementType = (CorElementType)type.ElementType;
     this.attributes = type.GetTypeAttributes();
     this.token = token;
     this.tokenInitd = token != 0;
 }
开发者ID:yueding,项目名称:dnSpy,代码行数:11,代码来源:DebuggerType.cs


示例20: DebuggerModule

		public DebuggerModule(Debugger debugger, DnModule mod) {
			debugger.Dispatcher.VerifyAccess();
			this.debugger = debugger;
			this.mod = mod;
			hashCode = mod.GetHashCode();
			uniqueId = mod.UniqueId;
			name = mod.Name;
			address = mod.Address;
			size = mod.Size;
			var moduleId = mod.DnModuleId;
			this.moduleId = new ModuleId(moduleId.AssemblyFullName, moduleId.ModuleName, moduleId.IsDynamic, moduleId.IsInMemory, moduleId.ModuleNameOnly);
		}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:12,代码来源:DebuggerModule.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# DebuggerFeatures类代码示例发布时间:2022-05-24
下一篇:
C# DebugLevel类代码示例发布时间: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