microsoft / microsoft/vscode-cpptools

output to std::cout produces spurious characters in internal debug console

Open
#708 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm using macOS 10.12.1, running VS Code 1.12.1 and cpptools 0.11.0

I have a simple program:

#include
int main() {
std::cout << "Hello World!" << std::endl;
}

It outputs this in the external console:
Hello World!

but this in the internal debug console:
@"Hello World!\r\n"

Surely that's a bug, or have I missed something ?

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

Reproduce the example program on the listed macOS, VS Code, and cpptools versions, comparing the external and internal debug consoles. Trace the internal console's handling of std::cout output; done when it displays Hello World! without the @"...\r\n" representation.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.