I have a couple of massive data structures that are causing problems in my VB.NET application. After an exception is thrown and the application pauses, I'd like to run some code like:
For Each o As MyClass In myObjects
If o.property = "value" Then debug.print(o.id)
Next
to diagnose the problem.
The problem is that the immediate window won't let me execute loops, and the myObjects
collection contains far too many objects for me to find the offending one I want manually.
How can I find this object while the debugger is paused? Is this, or something similar, possible in the .NET IDE?