microsoft / microsoft/vscode-cpptools

VsCode C++ cin commands not working in debug console

Open
#7,699 11 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger question
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

I couldn't use cin command in c++ when debugging because we can't input something in debug console. After that I saw so many people said to use "externalconsole": true but after that, the console closes as soon as the program finishes execution.
I heard we can use a cin command at the end of the CPP file but it is very annoying that we always have to write cin command at the end. So how can I fix it? Is there any way to use integrated terminal instead of debug console? Btw I am talking about Cygwin Gcc

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing C++ cin input during debugging with Cygwin GCC, comparing externalconsole=true with the integrated terminal and debug console. Confirm whether input is accepted and whether the console remains usable after program exit; done means documenting a supported configuration or clearly identifying the extension behavior that must change.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript, vscode
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.