This is a feature request.
Aside, this has been asked a few times going back at least ten years. But the answers have not been adequate. The functionality is needed, and the proposed workarounds, at the east the ones that Ive seen in the forum, do not actually work.
Let's see if we can explain what is going on and why we need this functionality.
The use case:
Bob has written some code and has added numerous print statements to help him debug or analyze his code
The output is several screens worth in the serial monitor in the IDE. Bob needs to save this to a file and print it, so that he can more easily analyze what is going on in his code.
Ideally there would be a button to turn on logging to save output to a file, or to dump the the lines already in the scroll buffer to a file.
Serial Monitor in the IDE seems to not have any of this capability.
In the forum, there have been two answers:
A) Ctrl -A This does not work. Ctrl-A highlights the code window, not the serial monitor.
B) Copy and paste - This does not work. You can select the text in the Serial Monitor, but Ctrl-C does not copy it to any paste buffer.
C) Use a different serial monitor program - This is a non-answer that only reiterates that the functionality is missing in the Serial Monitor in the IDE.
Can we please get this fixed? After ten years of this topic coming up in the forums, we should at least understand that there is a not very unusual use case that is not being addressed.
Thank you