Exemple #1
0
 /// <summary>
 /// Creates an IL instruction breakpoint
 /// </summary>
 /// <param name="module">Module</param>
 /// <param name="token">Method token</param>
 /// <param name="ilOffset">IL offset</param>
 /// <param name="bpCond">Condition or null</param>
 /// <returns></returns>
 public DnILCodeBreakpoint CreateBreakpoint(SerializedDnModule module, uint token, uint ilOffset, IBreakpointCondition bpCond = null)
 {
     DebugVerifyThread();
     var bp = new DnILCodeBreakpoint(module, token, ilOffset, bpCond);
     ilCodeBreakpointList.Add(module, bp);
     foreach (var dnMod in GetLoadedDnModules(module))
         bp.AddBreakpoint(dnMod);
     return bp;
 }
Exemple #2
0
		/// <summary>
		/// Creates an IL instruction breakpoint
		/// </summary>
		/// <param name="module">Module</param>
		/// <param name="token">Method token</param>
		/// <param name="offset">IL offset</param>
		/// <param name="cond">Condition</param>
		/// <returns></returns>
		public DnILCodeBreakpoint CreateBreakpoint(DnModuleId module, uint token, uint offset, Func<ILCodeBreakpointConditionContext, bool> cond) {
			DebugVerifyThread();
			var bp = new DnILCodeBreakpoint(module, token, offset, cond);
			ilCodeBreakpointList.Add(module, bp);
			foreach (var dnMod in GetLoadedDnModules(module))
				bp.AddBreakpoint(dnMod);
			return bp;
		}