Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub DumpLocals()
- Dim outputWindow As EnvDTE.OutputWindow
- outputWindow = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput).Object
- Dim currentStackFrame As EnvDTE.StackFrame
- currentStackFrame = DTE.Debugger.CurrentStackFrame
- outputWindow.ActivePane.OutputString("*Dumping Local Variables*" + vbCrLf)
- For Each exp As EnvDTE.Expression In currentStackFrame.Locals
- outputWindow.ActivePane.OutputString(exp.Name + " = " + exp.Value.ToString() + vbCrLf)
- Next
- End Sub
Add Comment
Please, Sign In to add comment