Enter break mode
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
The following information 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