Entering Break Mode
The following describes the process that occurs when a breakpoint is encountered after stepping into a function, running to the line of source code that has the cursor in it, or running to a breakpoint.
Break Mode Process
The debug engine (DE) sends IDebugBreakpointEvent2, IDebugExceptionEvent2, or any other stopping event to cause the IDE to enter break mode.
The SDM gets the call stack information from the thread, as follows:
IDebugStackFrame2::GetDocumentContext to get the source code information
IDebugDocumentContext2::GetName to get the file name
IDebugDocumentContext2::GetStatementRange to get the statement range
IDebugStackFrame2::GetCodeContext to get memory information