Reputation: 10310
Is there any way to find all references to an object while debugging?
Upvotes: 7
Views: 2208
Reputation: 116401
If you're willing to dig into WinDbg it is fairly easy to find references to a specific object. However, WinDbg is not the easiest tool to use.
This blog has lots of info on using WinDbg.
Upvotes: 3
Reputation: 106902
Not with the default tools that Visual Studio offers you. There are 3rd party "Memory Profilers" out there that will allow you to do this. I have used one myself to hunt down a "memory leak" in a .NET program.
Upvotes: 0
Reputation: 1499880
Not without using the profiling/debugger API, as far as I'm aware. (Even with the API, I don't know how to do it.)
Upvotes: 6