问题
I am trying to search for a string in the memory of a program I am debugging with visual studio 2010. I am trying to use the Immediate Window to do this but whenever I try (.S -A 0x400000 0x400200 "MyString") It gives me the error "CXX0014: Error: missing operand" and I am not sure why it does or how to fix it. Any help would be greatly appreciated.
回答1:
If I right understood you are searching for a string
value (suppose some runtime value) among all values available in your program during the run. If so, I don't think it's even possible, not that I'm aware of, from Visual Studio
. There are always hacking
solution for that, like dump process memory, read assembly, but even there you can met problems, if (just an example) the program (at this point I suppose it wasn't written by you) store the values in SecureString
.
If this is not your intention, please clarify.
来源:https://stackoverflow.com/questions/9777790/how-to-search-for-a-string-in-memory-while-debugging