IDkmGPUSymbolQueryCallback.GetUserCodeSourcePositionCallback 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 or not in user code then null is returned (E_INSTRUCTION_NO_SOURCE return code).
public:
Microsoft::VisualStudio::Debugger::Symbols::DkmSourcePosition ^ GetUserCodeSourcePositionCallback(Microsoft::VisualStudio::Debugger::Symbols::DkmInstructionSymbol ^ instruction, Microsoft::VisualStudio::Debugger::Evaluation::DkmInspectionSession ^ inspectionSession);
public Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition GetUserCodeSourcePositionCallback (Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol instruction, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession inspectionSession);
public Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition? GetUserCodeSourcePositionCallback (Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol instruction, Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession? inspectionSession);
abstract member GetUserCodeSourcePositionCallback : Microsoft.VisualStudio.Debugger.Symbols.DkmInstructionSymbol * Microsoft.VisualStudio.Debugger.Evaluation.DkmInspectionSession -> Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition
Public Function GetUserCodeSourcePositionCallback (instruction As DkmInstructionSymbol, inspectionSession As DkmInspectionSession) As DkmSourcePosition
Parameters
- instruction
- DkmInstructionSymbol
[In] DkmInstructionSymbol represents a method in the target process.
- 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.
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.