This issue happens when more than a screen-full of old serial data from some previous operation is displayed, and then an upload is done, and the new program outputs new data (like a "hello world" message).
I have two screenshots, one shows the appearance of the window immediately after a successful upload. The second shows the window AFTER I manually moved the scroll bar to uncover the two lines (it also works with just one, I added another during my proof tests).
Toggle autoscroll, circled in red at the right hand side, and see if it solves the issue.
@weshowe is correct. I have the same problem, and scroll is enabled. Starting a new upload with serial output does not place the scroll at the end the old data to show the new output. It seems to show the screen somewhere arbitrarily.
pjrc
December 1, 2022, 4:39pm
4
I tried to create a demo video.
pjrc
December 2, 2022, 1:32pm
5
Defragster opened an issue on github.
opened 05:32AM - 01 Dec 22 UTC
topic: code
type: imperfection
topic: serial monitor
### Describe the problem
**Serial Monitor** view does not autoscroll on new c… ontent received when the view is not in focus.
### To reproduce
#### Equipment
Any Arduino board that can print to **Serial Monitor**.
#### Steps
1. Create a sketch that prints to Serial Monitor soon after the program starts:
```cpp
void setup() {
Serial.begin(9600);
for (byte counter = 0; counter < 100; counter++) {
Serial.println("hello");
}
}
void loop() {}
```
1. Connect the Arduino board to your computer.
1. Select the board and port in Arduino IDE.
1. Open the "**Serial Monitor**" view if it is not already open.
1. Select "**9600 baud**" from the dropdown baud rate menu at the top right corner of the "**Serial Monitor**" view.
1. If it is not already enabled, click the "**Toggle Autoscroll**" icon near the top left corner of the "**Serial Monitor**" view to enable autoscroll.
1. Click the "**Clear Output**" icon at the top left corner of the "**Serial Monitor**" view.
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload to finish successfully.
1. Select the "**Serial Monitor**" tab in the bottom panel.
🐛 The printed text is not visible in the "**Serial Monitor**" view:

1. Scroll the output field of the "**Serial Monitor**" view downward.
You will now see the printed text.
1. Click the "**Clear Output**" icon at the top left corner of the "**Serial Monitor**" view.
1. Create a sketch that prints to Serial Monitor after a delay:
```cpp
void setup() {
Serial.begin(9600);
delay(10000);
for (byte counter = 0; counter < 100; counter++) {
Serial.println("world");
}
}
void loop() {}
```
1. Select **Sketch > Upload** from the Arduino IDE menus.
1. Wait for the upload to finish successfully.
1. Immediately select the "**Serial Monitor**" tab in the bottom panel.
**ⓘ** The reason for the "immediately" instruction is to ensure the "**Serial Monitor**" view will have focus by the time the sketch program starts printing.
1. Wait until the sketch program's 10 s delay has passed.
🙂 Serial output from the board is visible in the "**Serial Monitor**" view.
❗ The scroll is incomplete due to a separate bug: https://github.com/arduino/arduino-ide/issues/1736
### Expected behavior
All buffered output should be visibly displayed in Serial Monitor tab.
### Arduino IDE version
#### Original report
2.0.2
#### Last verified with
5695fd8
### Operating system
Windows
### Operating system version
windows 11
### Additional context
Originally reported at https://forum.pjrc.com/threads/71588-Arduino-IDE2-Serial-Monitor-sometimes-does-not-work-continue-from-Upload-Thread?p=316565
Additional reports:
- https://forum.arduino.cc/t/ide-2-0-2-serial-monitor-data-forgets-to-scroll-with-new-data/1060247
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-ide/issues?q=)
- [X] I verified the problem still occurs when using the latest [nightly build](https://www.arduino.cc/en/software#nightly-builds)
- [X] My report contains all necessary details
Hello ,
I’m currently facing exactly the same issue.
By the end did some of you found a solution?
I’m currently thinking to use an other monitor , using windows 11, Could you advise me about the application to use.
Many thanks , in avance , for your help.