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

Open
opened 2026-01-31 07:09:19 +00:00 by claunia · 0 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:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20294