How to get the ObjectIDs used in the debugger

I’m trying to debug an application where it appears that my document changes unexpectedly, I want to narrow down where and when this might be occurring.

When using the debugger I can show ObjectIDs, which helps, however I’d like to log them, but find no way to get these. Is there a way that I’m missing?

You will need to loop over all runtime objects and narrow down to ObjectClass you are looking for.