views:

288

answers:

2

Was just wondering if there was a way to edit the CPU registers (i.e. EAX, EBX, ECX, etc) or flags (OV, UP, erc) from within the Visual Studio IDE. I know you can view them using the Registers pane (ctrl-shift-G) and you can cycle through them with TAB or ENTER, but I don't seem to be able to change any of them while debugging (yes, program execution is halted :)).

I don't really have a strong need to do so, it's just that: I can see the assembly... I used to be able to do this (VC++6)... why can't I now, kind'a thing!

Thanks!

+2  A: 

yes, you can....

from the help (you know...the f1 key)

To change the value of a register

  • In the Registers window, use the TAB key or the mouse to move the insertion point to the value you want to change. When you start to type, the cursor must be located in front of the value you want to overwrite.
  • Type the new value.
  • Press ENTER.
Keith Nicholas
I also tried this myself...seems to work ok
Keith Nicholas
This only works for Native code, not managed. http://msdn.microsoft.com/en-us/library/yzztbfkk.aspx
icelava
A: 

No you can't. That awful thing doesn't work in managed mode or mixed mode.