Windbg - how to dump non-local variables values

2k Views Asked by At

I see a simple dv does not dump non-local variables values (e.g member variables - member fields of a class)

Also dt will not work.. I am new to windbg so I assume I am just missing a command.

Or do I need to change some settings so dv would dump the variable I need regardless of scope?

1

There are 1 best solutions below

0
On BEST ANSWER

You can try:

dt this m_membervar

OR add a period

dt this m_membervar.

OR

dt /r1 this