In my code, I have a object whose contents is fully garbage. I guess in other part of code a wrong write happened and by (un)luck it wrote at the address of object I mentioned.
I was wondering if there is some tool that can tell me every write that a memory address receives, so I can track the origin of this bug.
Most debuggers support breakpoints on write.
For example in visual studio you have to launch your app in debugger, break in (on a normal breakpoint close to initialization of suspect variable), then go “Debug/New Breakpoint/New Data Breakpoint” in the menu.
In SoftIce you can use BPM command. 🙂 That one can also break on memory access.