Pseudo-registers in VS debugger

April 12th, 2008

I found a very interesting feature of Visual Studio’s debugger. It’s been there for a long time but many developers do not know (including me) that pseudo-registers can be helpful.
There are more registers but I will mention just two of them.

@ERR

Well, it returns the same as GetLastError(), It optionally can return formatted string – just write it like @err,hr
I think I don’t need to add more, screens below are self-explanatory

Code
Watch window

$user

Provides many informations about a user executing current process

Watch window - user

Happy debugging.

Leave a Reply

Designed by SirMike © All rights reserved

Valid XHTML 1.0! Valid CSS!

Powered by Rootnode