Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Console window no longer auto-scrolling?

Discussion in 'Editor & General Support' started by DWmDM, Nov 25, 2019.

  1. DWmDM

    DWmDM

    Joined:
    Feb 7, 2017
    Posts:
    8
    Am I crazy in thinking the console window would normally always be automatically scrolled to the bottom and the most recent messages? Currently mine will only stay scrolled to the top, and I need to manually scroll to the bottom. I can find people requesting the feature, but years ago, so I don't know if maybe it was a setting I switched accidentally but I can't find any way to switch it back.

    Thank you
     
  2. DWmDM

    DWmDM

    Joined:
    Feb 7, 2017
    Posts:
    8
    Bumping this because I've asked a bunch of other places as well and no one has any information. This is *so* annoying. If anyone can give me any insight at all I would be so appreciative.
     
  3. DarkTree

    DarkTree

    Joined:
    Mar 23, 2013
    Posts:
    239
    Try to select latest message in the console. Works fine for me!
     
  4. DWmDM

    DWmDM

    Joined:
    Feb 7, 2017
    Posts:
    8
    Up until a few days ago, mine would always be stuck to the bottom/the newest messages, unless I scrolled up or away from the newest message in which case it would stay where I was scrolled. Then all of a sudden it stopped, and nothing I do seems to be able to switch it back.

    Tried this, basically I do this every time I hit play hoping it will magically stay this time but nope. No luck yet. Thanks though.
     
  5. DWmDM

    DWmDM

    Joined:
    Feb 7, 2017
    Posts:
    8
    I just figured out why this was happening and I thought I would share in case someone in the future is confused about the same thing:

    So, I had a bunch of components sending Debug.Log information, and on the first frame that the Console received *any* information to display, it received more than would fit in the area without a scroll bar and it doesn't recognize the message displayed at the bottom as any "newer" than the message at the top because they were all generated at same time, so it stays at the top. Since smartscroll is not enabled on this first frame, it isn't enabled at all, and it stays at the top. If I send a single message to the console before sending it a lot of messages in a single frame, smartscroll is enabled and it behaves as intended.

    So, if anyone in the future is confused about this and finds this forum post:
    Just add a single new Debug.Log statement when your scene loads and it will stop happening.
     
    ph4ntomz, Alekxss, Mikhail94 and 2 others like this.
  6. LW

    LW

    Joined:
    Jun 23, 2013
    Posts:
    22
    Thank you, @DWmDM !
     
  7. Mikhail94

    Mikhail94

    Joined:
    Dec 22, 2015
    Posts:
    35
    Thank you @DWmDM!

    For all who are too lazy to read and need a turnkey solution: Just add any Debug.Log in Awake()

    I use such a universal stub:
    Code (CSharp):
    1. Debug.Log($"{GetType().Name} Initialized");
     
  8. jonc113

    jonc113

    Joined:
    Mar 10, 2013
    Posts:
    18
    You would think if these developers actually used their own stuff, they would get as frustrated and annoyed as we are and do something about it.

    Also this fix did not solve my scrolling problem...
     
    Last edited: Aug 25, 2020
    goodnewsjimdotcom and aJames4423 like this.
  9. pjbaron

    pjbaron

    Joined:
    Jan 12, 2017
    Posts:
    53
    I have the same problem in the Unity Android logcat package. The usual fix for badly designed terminals (there are lots of them) is to use keys to skip down to the bottom of the file - you need to get the cursor onto the last character for it to lock there. 'End' often does it, or repeated 'PgDw' keys, unfortunately logcat doesn't accept keyboard input. It doesn't seem possible to click the mouse after the last character.
    To be clear: the window worked as expected until I selected a line which was not the last line, and even then it resumed scrolling to show the bottom line if I used 'clear' to empty the window. Then it stopped working during a long day of testing, and I can't make it resume.
     
  10. Stevens-R-Miller

    Stevens-R-Miller

    Joined:
    Oct 20, 2017
    Posts:
    664
    This truly is annoying behavior. What I have been doing when I need to monitor a stream of debug data as the game runs is adding a public member to the component that would be calling Debug.Log, and just setting that member's value to whatever I would have been printing to the console. It doesn't keep a record for me, but it lets me monitor the changing value without any scrolling problems.
     
  11. aJames4423

    aJames4423

    Joined:
    Jul 23, 2022
    Posts:
    2
    Creating a terminal that doesn't scroll. Impressive..
     
  12. JonathanCel

    JonathanCel

    Joined:
    Feb 17, 2021
    Posts:
    22
    It's actually fixed in recent releases.
    But yeah, it's indicative of some larger problems at Unity that this was an issue for so so long.
     
  13. goodnewsjimdotcom

    goodnewsjimdotcom

    Joined:
    May 24, 2017
    Posts:
    342
    Crazzzzzzy, for real, its' in 2021.3.5f1
     
  14. volp3tta

    volp3tta

    Joined:
    May 21, 2023
    Posts:
    4
    On 2022.3 and have the problem still. I don't remember ever using any version of Unity where this wasn't an issue.
     
    Boodums likes this.