How to make a debugging overlay

I want to create a debugging overlay that draws arbitrary graphics on the diagram – would be helpful in understanding/debugging custom layouts.

What would you recommend? Creating one node on it’s own layer, matching the size of the entire document? Then I can create rectangles, etc in specific locations overlapping the main diagram.

I would like for example to show the layout network on top of the actual diagram.

Can you point me to a sample that does something similar?

Can you show me a picture of what you’re envisioning?

What about just placing different categories of nodes (essentially debug or annotation nodes) into the “Foreground” layer, using a different node template?

Actually I think I ended up concluding that… I saw a sample with a yellow highlight, and it was put on a separate layer, at same position as underlying object.