WHen used with Visual Studio for debugging, screen doesnt clear #20299

Closed
opened 2026-01-31 07:09:27 +00:00 by claunia · 10 comments
Owner

Originally created by @towel42-com on GitHub (Jul 26, 2023).

Windows Terminal version

No response

Windows build number

No response

Other Software

Visual Studio 2022 17.6.5

Steps to reproduce

Create a C++ console application
Make sure the debugging option to "Automatically close the console when debugging stops" is unchecked
Run and exit an attached debugging session
Again Run and exit an attached debugging session

Expected Behavior

With the old windows console, it was cleared every time.

This is what should happen

Actual Behavior

When you run a second (or more) debugging session, 99% of the time it just starts at the top of the console screen overwriting existing text

Sometimes it clears it.

This is largely due to VS 2022 (I skipped 2019 so it may be in 2019) ability to leave the console open when debugging ends. If you turn off that option, this is not an issue.

Originally created by @towel42-com on GitHub (Jul 26, 2023). ### Windows Terminal version _No response_ ### Windows build number _No response_ ### Other Software Visual Studio 2022 17.6.5 ### Steps to reproduce Create a C++ console application Make sure the debugging option to "Automatically close the console when debugging stops" is unchecked Run and exit an attached debugging session Again Run and exit an attached debugging session ### Expected Behavior With the old windows console, it was cleared every time. This is what should happen ### Actual Behavior When you run a second (or more) debugging session, 99% of the time it just starts at the top of the console screen overwriting existing text Sometimes it clears it. This is largely due to VS 2022 (I skipped 2019 so it may be in 2019) ability to leave the console open when debugging ends. If you turn off that option, this is not an issue.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 07:09:27 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 26, 2023):

Are you using the Windows Terminal, or the vintage windows console (conhost.exe)?

@zadjii-msft commented on GitHub (Jul 26, 2023): Are you using the Windows Terminal, or the vintage windows console (`conhost.exe`)?
Author
Owner

@towel42-com commented on GitHub (Jul 27, 2023):

WT Multiple tabs and all :) Ive noticed this on a couple of machines

@towel42-com commented on GitHub (Jul 27, 2023): WT Multiple tabs and all :) Ive noticed this on a couple of machines
Author
Owner

@zadjii-msft commented on GitHub (Jul 27, 2023):

Which version of the Terminal/? There was something like this that was fixed in 1.18...

@zadjii-msft commented on GitHub (Jul 27, 2023): Which version of the Terminal/? There was something like this that was fixed in 1.18...
Author
Owner

@towel42-com commented on GitHub (Jul 27, 2023):

1.17.11461.0 Ill go to the windows store and update and see if that fixes it

@towel42-com commented on GitHub (Jul 27, 2023): 1.17.11461.0 Ill go to the windows store and update and see if that fixes it
Author
Owner

@zadjii-msft commented on GitHub (Jul 27, 2023):

1.17 is the latest version of Terminal Stable, 1.18 can be found here: https://aka.ms/terminal-preview. You can then set that as the "Default Terminal Application" in the settings app (or settings UI of the Terminal), and have VS launch that one instead.

@zadjii-msft commented on GitHub (Jul 27, 2023): 1.17 is the latest version of Terminal _Stable_, 1.18 can be found here: https://aka.ms/terminal-preview. You can then set that as the "Default Terminal Application" in the settings app (or settings UI of the Terminal), and have VS launch that one instead.
Author
Owner

@towel42-com commented on GitHub (Jul 27, 2023):

I realized that once I went to the store. I installed the preview, it appears to have fixed the issue. However, so Im closing this issue. If I see it again, Ill re-open

@towel42-com commented on GitHub (Jul 27, 2023): I realized that once I went to the store. I installed the preview, it appears to have fixed the issue. However, so Im closing this issue. If I see it again, Ill re-open
Author
Owner

@zadjii-msft commented on GitHub (Jul 27, 2023):

Great, I bet this was /dup #14512. Thanks for confirming!

@zadjii-msft commented on GitHub (Jul 27, 2023): Great, I bet this was /dup #14512. Thanks for confirming!
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jul 27, 2023):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Jul 27, 2023): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@robbrink-rightware commented on GitHub (Mar 27, 2024):

This is still happening for me with Windows Terminal 1.19.10573.0

@robbrink-rightware commented on GitHub (Mar 27, 2024): This is still happening for me with Windows Terminal 1.19.10573.0
Author
Owner

@Kobi-Blade commented on GitHub (Jan 11, 2025):

This is still happening for me with Windows Terminal 1.19.10573.0

Seems the issue has leaked to Visual Studio Terminal as well, they say was fixed but clearly was not.

@Kobi-Blade commented on GitHub (Jan 11, 2025): > This is still happening for me with Windows Terminal 1.19.10573.0 Seems the issue has leaked to Visual Studio Terminal as well, they say was fixed but clearly was not.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20299