Arduino 2.0.3: Serial Monitor Autoscroll inoperative

Perhaps there is some setting I am unaware of, but No matter what I set the "autoscroll" button to, the Serial Monitor refuses to scroll unless I do it manually with my mouse wheel.

I find this is true whether I use the COM4 port or the Teensy port.

  • Wes
1 Like

Hi @weshowe. Does the problem also occur if you upload this simple sketch to your board?

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("hello");
  delay(1000);
}

The sketch you uploaded works. Because it prints only 1 line at a time.
I modified it to this:

void setup() {
  Serial.begin(9600);
}

void loop() {
  for(int i=0; i<4; i++) {
    Serial.print("hello ");
    Serial.println(0+i);
    Serial.print("hello ");
    Serial.println(1+i);
    Serial.print("hello ");
    Serial.println(2+i);
  }
  while(1);
}

and this is what I got after it ran:
Screenshot 2022-12-06 181300
And after I manually scrolled the serial monitor:

Test it yourself. Printing any more than 1 line at a time will not properly scroll the monitor.
I purposely use the COM4 port for this test, rather than the Teensy port. I got bedeviled with the upload ghosting out on me.
I get the same results on the Teensy port (minus the upload ghosting out). It appears to not be losing data, just not scrolling properly.

  • Wes

I noticed this because a program I am working on has a tiny command processor in it, and it has a "dump" that prints a multi-line listing of various variable values (which I can alter with other commands). It currently prints 9 lines, and every time I use it I have to manually scroll to see the lines.

1 Like

Thanks for the additional information. This bug is being tracked by the Arduino IDE developers here:

Thanks for looking at this. But what I read in the bug report does not match this. In this bug, a print with multiple lines does not scroll whether the serial monitor is in focus or not.

It should scroll on line per newline received. It does not do that, even once, for multiple lines printed. It is obvious the data is received, but the scrolling just does not happen.

  • Wes

You must be looking at the wrong report. Focus is not mentioned anywhere in the one I linked above.

You are likely thinking of this other report, which is related in that it is also about autoscroll, but definitely distinct:

OK, I see you referenced this thread. I did veer off into a link to an older report. I hope it helps them get it fixed.

  • Wes

I've been trying to get more consistent about doing that lately. The idea is that it can help the project managers to determine priorities for allocating the limited development resources.

Some issues impact 1/1000000 users, while others impact a significant percentage of users. It is not always easy for the managers to understand which are most impactful. The number of reports we receive here on the forum can be seen as a somewhat of a metric.

So far, I have had to pay not one scintilla of attention to the compiler and linker underlying this. I admit I write rather defensively, from experience with compilers guided only by the K&R C book from decades ago.
My "adventures" tend to run a narrow band of features and a small subset of the available boards. The serial monitor is a very handy feature, if only because it is coordinated with the uploader such that normally you don't have to actively switch programs, disconnect/connect to the serial port and other exercises to write/compile/upload/test new code.
I am not seeking serious terminal capabilities in the serial monitor, mere text exchange is adequate.

  • Wes

yes. autoscroll dosnt work. its ok if u got 1 or 2 lines in minute, but its become usless when u got 1 or 2 lines in second

What's the status of the Serial monitor? It's the only debugging tool I have for IDE 2.0.3. After a fresh compile, the Serial monitor shows nothing even though debug statements are in the code. If I power cycle the Teensy 4.1, then I can see my debugging statements. I'm using Win 11. I don't think the toggle for Autoscroll work either.

And upload, I assume?

Do you see the bayd rate selector at the right top side of the serial monitor when this happens. If not, it indicates that the IDE / serial monitor did no longer find the port.

I can't help you to solve it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.