public AD7MemoryAddress(AD7Engine engine, string fileName, int?lineNumber, AD7DocumentContext documentContext = null) { Engine = engine; FileName = fileName; LineNumber = lineNumber; DocumentContext = documentContext; }
int IDebugStackFrame2.GetDocumentContext(out IDebugDocumentContext2 ppCxt) { var pos = new TEXT_POSITION { dwColumn = 0, dwLine = (uint)((StackFrame.LineNumber - 1) ?? 0) }; string fileName = StackFrame.FileName; if (fileName != null) { try { fileName = Path.GetFullPath(fileName); } catch (Exception) { } } ppCxt = new AD7DocumentContext(fileName, pos, pos, null); return VSConstants.S_OK; }
int IDebugStackFrame2.GetDocumentContext(out IDebugDocumentContext2 ppCxt) { var pos = new TEXT_POSITION { dwColumn = 0, dwLine = (uint)((StackFrame.LineNumber - 1) ?? 0) }; string fileName = StackFrame.FileName; if (fileName != null) { try { fileName = Path.GetFullPath(fileName); } catch (Exception) { } } ppCxt = new AD7DocumentContext(fileName, pos, pos, null); return(VSConstants.S_OK); }
public AD7MemoryAddress(AD7Engine engine, string fileName, int? lineNumber, AD7DocumentContext documentContext = null) { Engine = engine; FileName = fileName; LineNumber = lineNumber; DocumentContext = documentContext; }