Re: Searching for data

Tech-Archive recommends: Fix windows errors by optimizing your registry




I've got some problems with the vstudio debugger. I want to break the
execution of a program, and then search for a 4-byte integer with a specific
value in the memory window. But unfortunately there is no search function.
Is it still possible to do that? Or is it possible to achieve the same with
a breakpoint or something?

I'm using Visual Studio 2003.


One possible workaround is to use CDB/WinDbg in noninvasive mode
while your application is stopped in VS debugger. For example:

cdb -pv -pn yourapp.exe -c "s -d <start_addr> L<num_bytes_to_search> <value>;q"

Here you can find more information about using CDB with VS debugger:
http://www.debuginfo.com/articles/easywindbg.html

Regards,
Oleg
[VC++ MVP http://www.debuginfo.com/]





.