コード例 #1
0
        // Continue is called from the SDM when it wants execution to continue in the debugee
        // but have stepping state remain. An example is when a tracepoint is executed,
        // and the debugger does not want to actually enter break mode.
        public int Continue(IDebugThread2 pThread)
        {
            AssertMainThread();

            AD7Thread thread = (AD7Thread)pThread;

            // TODO: How does this differ from ExecuteOnThread?
            thread.GetDebuggedThread().Resume();

            return(VSConstants.S_OK);
        }
コード例 #2
0
        // ExecuteOnThread is called when the SDM wants execution to continue and have
        // stepping state cleared.  See http://msdn.microsoft.com/en-us/library/bb145596.aspx for a
        // description of different ways we can resume.
        public int ExecuteOnThread(IDebugThread2 pThread)
        {
            AssertMainThread();

            // clear stepping state on the thread the user was currently on
            AD7Thread thread = (AD7Thread)pThread;

            thread.GetDebuggedThread().ClearSteppingState();

            _process.Resume();

            return(VSConstants.S_OK);
        }