How to display objects in a View.Document?

Is there a way to look at the objects in a Document? I am having trouble Removing all GoText objects in one of my View.Documents and would like to watch them being removed to help debug what’s happening in my code.

You can’t modify a collection while iterating through it… (guessing what the issue might be)

an example of how to handle this…

foreach (GoObject child in group.CopyArray()) { …