Example #1
0
        // 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)
        {
            // Assume all lines begin and end at the beginning of the line.
            var begTp = new TEXT_POSITION {
                dwColumn = 0, dwLine = (uint)_stackFrame.Line - 1
            };
            var endTp = new TEXT_POSITION {
                dwColumn = 0, dwLine = (uint)_stackFrame.Line - 1
            };

            docContext = new AD7DocumentContext(_stackFrame.FileName, begTp, endTp, null);
            return(VSConstants.S_OK);
        }
Example #2
0
        // 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)
        {
            // Assume all lines begin and end at the beginning of the line.
            var begTp = new TEXT_POSITION {dwColumn = 0, dwLine = (uint) _stackFrame.Line - 1};
            var endTp = new TEXT_POSITION {dwColumn = 0, dwLine = (uint) _stackFrame.Line - 1};

            docContext = new AD7DocumentContext(_stackFrame.FileName, begTp, endTp, null);
            return VSConstants.S_OK;
        }
 public AD7BreakpointResolution(AD7Engine engine, NodeBreakpoint address, AD7DocumentContext documentContext)
 {
     m_engine = engine;
     m_address = address;
     m_documentContext = documentContext;
 }
Example #4
0
 public AD7BreakpointResolution(AD7Engine engine, NodeBreakpoint address, AD7DocumentContext documentContext)
 {
     m_engine          = engine;
     m_address         = address;
     m_documentContext = documentContext;
 }