I'm in a situation where I'd like a robust Immediate window (just for printing out things during runtime). I'm working on something that's often crashing my IDE. (I'd go into what that is, but it's not necessary for my question.)

So, when the IDE crashes, I lose anything I've printed to the Immediate window. I've been thinking about a print to some console window. The only thing that comes to mind is writing a second program that hooks its window and listens for WM_COPYDATA. Also, that window could have some very unique title so it could be found by other applications.

Then, in my IDE crashing development application, I could find that unique top-level title, and send messages to it with WM_COPYDATA.

I haven't started, but I'll probably test that concept.

I'm just wondering if I'm overlooking something easier. I'm in a situation where I need to put in Debug.Print statement (or something similar), and not lose it if/when the IDE crashes.

Yeah, I know I could append to a file, but I'd like something that's more immediately visible to me.

Thanks,
Elroy