当前位置: 首页>>代码示例>>C#>>正文


C# Client.BreakpointEventArgs类代码示例

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


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

示例1: OnBreakpointUpdated

		void OnBreakpointUpdated (object s, BreakpointEventArgs args)
		{
			TreeIter it;
			if (!store.GetIterFirst (out it))
				return;
			do {
				Breakpoint bp = (Breakpoint) store.GetValue (it, (int) Columns.Breakpoint);
				if (bp == args.Breakpoint) {
					string traceVal = bp.HitAction == HitAction.PrintExpression ? bp.LastTraceValue : "";
					string hitCount = bp.HitCount > 0 ? bp.HitCount.ToString () : "";
					store.SetValue (it, (int) Columns.HitCount, hitCount);
					store.SetValue (it, (int) Columns.LastTrace, traceVal);
					break;
				}
			} while (store.IterNext (ref it));
		}
开发者ID:IBBoard,项目名称:monodevelop,代码行数:16,代码来源:BreakpointPad.cs

示例2: OnBreakpointStatusChanged

		void OnBreakpointStatusChanged (object s, BreakpointEventArgs args)
		{
			if (ContentName == null || args.Breakpoint.FileName != Path.GetFullPath (ContentName))
				return;
			// Updated with a delay, to make sure it works when called as a
			// result of inserting/removing lines before a breakpoint position
			GLib.Timeout.Add (10, delegate {
				if (!isDisposed)
					UpdateBreakpoints (true);
				return false;
			});
		}
开发者ID:nocache,项目名称:monodevelop,代码行数:12,代码来源:SourceEditorView.cs

示例3: OnBreakpointUpdated

		void OnBreakpointUpdated (object s, BreakpointEventArgs args)
		{
			Runtime.RunInMainThread (() => {
				TreeIter it;

				if (!store.GetIterFirst (out it))
					return;

				do {
					var bp = (BreakEvent) store.GetValue (it, (int) Columns.Breakpoint);
					if (bp == args.Breakpoint) {
						string hitCount = bp.HitCountMode != HitCountMode.None ? bp.CurrentHitCount.ToString () : "";
						string traceVal = (bp.HitAction & HitAction.PrintExpression) != HitAction.None ? bp.LastTraceValue : "";
						store.SetValue (it, (int) Columns.HitCount, hitCount);
						store.SetValue (it, (int) Columns.LastTrace, traceVal);
						break;
					}
				} while (store.IterNext (ref it));
			});
		}
开发者ID:vvarshne,项目名称:monodevelop,代码行数:20,代码来源:BreakpointPad.cs


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