View local variables with SoftICE



None of the dumping routined ( d ) or watch routines ( WATCH ) work with local variables.


If using a Borland compiler, turn off Automatic Register

  Variables on the compile line ( a -r- switch from command

  line compiler ).  If this switch is on, the compiler stores

  some local variables in registers instead of on the stack

  so Soft-ICE does not know anything about them.  Otherwise,

  go into a mixed mode of source and assembly ( SRC command ).

  Find a source line that references that variable and in

  the underlying assembly you should see a reference to

  [bp-x] where x is some arbitrary number ( 2, 4, 10 etc ).

  This will be the local variable and you can dump or watch

  the address.

Old KB# 11536
Comment List
Related Discussions