How can we show a message box in the destructor of a VST3 processor?

Have you tried the FileLogger class?

I just Googled “juce write debug info to file”

You are of course not the first one who is looking for how to do this:

Success