IDE 1.8 kept the serial monitor output after disconnecting the port. The current version clears the output when the port is disconnected. This is really annoying, as you cannot capture the output for later diagnostics.
Hi @StephenJD. Thanks for giving the beta phase Arduino IDE 2.x a try and providing this valuable feedback.
The issue is being tracked by the Arduino IDE developers here:
If you have a GitHub account, you can subscribe to that issue in order to get notifications of any progress on the matter.