예제 #1
0
        /// <summary>
        /// Creates a breakpoint in this code segment at the specified offset.
        /// </summary>
        /// <param name="offset">The offset at which to create the breakpoint.</param>
        /// <param name="breakpoint">The created breakpoint.</param>
        /// <remarks>
        /// Before the breakpoint is active, it must be added to the process object.
        ///
        /// If this code is Microsoft intermediate language (MSIL) code, and there is
        /// a just-in-time (JIT)-compiled, native version of the code, the breakpoint
        /// will be applied in the JIT-compiled code as well. (The same is true if the
        /// code is JIT-compiled later.)
        /// </remarks>
        public int CreateBreakpoint(uint offset, out CorDebugFunctionBreakpoint breakpoint)
        {
            void **pBreakpoint = default;
            int    result      = Calli(_this, This[0]->CreateBreakpoint, offset, &pBreakpoint);

            ComFactory.Create(pBreakpoint, out breakpoint);
            return(result);
        }
예제 #2
0
 /// <summary>
 /// Creates a breakpoint at the beginning of this function.
 /// </summary>
 public int CreateBreakpoint(out CorDebugFunctionBreakpoint breakpoint)
 => InvokeGetObject(_this, This[0]->CreateBreakpoint, out breakpoint);