Inheritance: IDebugDocumentContext2
Example #1
0
 public AD7MemoryAddress(AD7Engine engine, string fileName, int?lineNumber, AD7DocumentContext documentContext = null)
 {
     Engine          = engine;
     FileName        = fileName;
     LineNumber      = lineNumber;
     DocumentContext = documentContext;
 }
Example #2
0
        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;
        }
Example #3
0
        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);
        }
Example #4
0
 public AD7MemoryAddress(AD7Engine engine, string fileName, int? lineNumber, AD7DocumentContext documentContext = null) {
     Engine = engine;
     FileName = fileName;
     LineNumber = lineNumber;
     DocumentContext = documentContext;
 }