In the unmanaged development world, you could observe the DWORD return value of a method by typing ‘@eax’ into the watch window of the debugger.
Does anyone know of an equivalent shortcut in managed code?
Related point: I have learned that VS2008 SP1 supports $exception as a magic word in the watch window. Are there any other shortcuts that you know of?
The watch window tricks like @eax are called [Psuedovariables]. They are actually documented. I wrote a blog post about this and some other VS debugging items a few years ago. Format specifiers are typically highly useful.
For your specific question there is no psuedo variable for eax in managed code. There is however a register window which will actually have EAX and the other registers in it. It is questionable that this will be useful in many situations as I don’t believe there is any way to cast the address to a managed type. You can however look at the layout in the memory window