[bug] XML content dumped using DumpFormatted is broken if the script exited with errors

Options
I noticed that when you dump XML using DumpFormatted(), switching over the tab will display the content outside of and behind the window.

Here's a simple example to replicate.

new XElement("foo").DumpFormatted();
throw new Exception("foo");
I would have expected to still be able to see the XML (as intended), even if the process exited with errors.

running on v5.22.11 Any

Comments