Do you know the manageable equivalent of "@eax"?

In an unmanaged development world, you can see the return value of a DWORD method by entering "@eax" in the debugger view.

Does anyone know of an equivalent shortcut in managed code?

A related point: I found out that VS2008 SP1 supports $ exception as a magic word in the viewport. Are there any other shortcuts you know about?

+3
source share
3 answers

Window window tricks such as @eax are called [Psuedovariables]. In fact, they are documented. I wrote a blog post about this and some other VS debugging devices a few years ago. Format specifiers are usually very useful.

For your specific question, there is no psuedo variable for eax in managed code. However, there is a register window in which there are actually EAX and other registers. It is highly doubtful that this will be useful in many situations, since I do not believe that there is a way to pass an address to a managed type. However, you can see the layout in the memory window

+3
source

I'm not sure if this is exactly what you mean, but there are other keywords that you can print for breakpoints:

  $ADDRESS      address of current instruction
  $CALLER       name of the previous function on the call stack
  $CALLSTACK    entire call stack
  $FUNCTION     name of the current function
  $PID          process ID for current process
  $PNAME        name of the current process
  $TID          thread ID for current thread
  $TNAME        name of the current thread
+4

@EAX , CIL ( ).

, 32 , @EAX, , . (, , , , .) , , , .

, , !

+1

All Articles