// Gets the document context for this stack frame. The debugger will call this when the current stack frame is changed // and will use it to open the correct source document for this stack frame. int IDebugStackFrame2.GetDocumentContext(out IDebugDocumentContext2 docContext) { docContext = null; try { if (hasSource) { // Assume all lines begin and end at the beginning of the line. // TODO: Accurate line endings TEXT_POSITION begTp = new TEXT_POSITION(); begTp.dwColumn = 0; begTp.dwLine = lineNumber - 1; TEXT_POSITION endTp = new TEXT_POSITION(); endTp.dwColumn = 0; endTp.dwLine = lineNumber - 1; docContext = new MonoDocumentContext(documentName, begTp, endTp, null); return(VSConstants.S_OK); } } catch (ComponentException e) { return(e.HResult); } catch (Exception e) { return(EngineUtils.UnexpectedException(e)); } return(VSConstants.S_FALSE); }
public MonoMemoryAddress(MonoEngine engine, uint address, MonoDocumentContext documentContext) { this.engine = engine; this.address = address; this.documentContext = documentContext; }
public MonoBreakpointResolution(MonoEngine engine, uint address, MonoDocumentContext documentContext) { this.engine = engine; this.address = address; this.documentContext = documentContext; }