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