Making #trace more useful: any well-known way to indent (or depth-number)?

I use #trace a ton to debug – basically don’t use the debugger at all. And I wondered if there was some way to get it to put some sort of indentation or depth-numbers on trace-entries. I haven’t looked into it at all, but just asking since somebody might know.

I’m thinking maybe even just adding a low-level hook to get the depth of the stack (and print that out) might be enough. The idea being that post-processing could take the trace and do visualization on it …

Anybody had similar thoughts already? Better thoughts?

2 Likes