IDkmSymbolQueryCallback.GetSourcePositionCallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the source file position (ex: example.cs, line 12) of this instruction symbol. If this instruction symbol is not associated with a source file then null is returned (S_FALSE return code in native).
public:
Microsoft::VisualStudio::Debugger::Symbols::DkmSourcePosition ^ GetSourcePositionCallback(Microsoft::VisualStudio::Debugger::Symbols::DkmInstructionSymbol ^ instruction, Microsoft::VisualStudio::Debugger::Symbols::DkmSourcePositionFlags flags, Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionSession ^ inspectionSession, [Runtime::InteropServices::Out] bool % startOfLine);
public Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition GetSourcePositionCallback (Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol instruction, Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePositionFlags flags, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession inspectionSession, out bool startOfLine);
public Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition? GetSourcePositionCallback (Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol instruction, Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePositionFlags flags, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession? inspectionSession, out bool startOfLine);
abstract member GetSourcePositionCallback : Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol * Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePositionFlags * Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession * bool -> Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition
Public Function GetSourcePositionCallback (instruction As DkmInstructionSymbol, flags As DkmSourcePositionFlags, inspectionSession As DkmInspectionSession, ByRef startOfLine As Boolean) As DkmSourcePosition
Parameters
- instruction
- DkmInstructionSymbol
[In] DkmInstructionSymbol represents a method in the target process.
- flags
- DkmSourcePositionFlags
[In] Flags which affect the behavior of 'GetSourcePosition'.
- inspectionSession
- DkmInspectionSession
[In,Optional] A reference object describing the current inspection session. Common usage is for symbol providers to cache lookups using its data container.
- startOfLine
- Boolean
[Out] True if this address is the first address in the line's range. False otherwise.
Returns
[Out,Optional] Source code position which corresponds to a code element. The could represent a location which has been extracted from a symbol (PDB) file, or it could be the location of a breakpoint in the IDE.