Error while using .ForEach in WinDbg
问题 Why am I getting a Invalid parameter poi(adr+4) when I run the following command in WinDbg while debugging a dump file? .foreach ( adr { !dumpheap -mt 66df13d4 -short } ) { !do poi(adr+4); } The following shows that the value of adr is getting populated just fine. .foreach ( adr { !dumpheap -mt 66df13d4 -short } ) { .echo adr; } I want to get the contents of a .NET string variable that is stored at the 4th offset of a System.Web.Caching.CacheEntry object. 回答1: You need to have spaces around