Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giving input to Concole.ReadLine() from VSCode #1957

Closed
SaiTeja390 opened this issue Aug 9, 2020 · 6 comments
Closed

Giving input to Concole.ReadLine() from VSCode #1957

SaiTeja390 opened this issue Aug 9, 2020 · 6 comments
Labels
bug Something isn't working stale This issue has not had activity in a while and will be closed upstream Needs to be fixed upstream
Projects
Milestone

Comments

@SaiTeja390
Copy link

I'm running code-server in Google Cloud Shell and since code-server cannot run the Microsoft's C# debugger, I'm running netcoredbg.

As mentioned here I updated my launch.json file by adding "console": "integratedTerminal".

I checked this link which says that Debug Console cannot take input to Console.ReadLine() and that it is meant only for inspection. So this means that I cannot send input to my program from Debug Console.

I read this link which says that setting "console": "integratedTerminal" will allow us to give input to the program from the "TERMINAL" tab in VSCode. But that doesn't work.

image

The "TERMINAL" opens a shell ready to take usual linux commands, but not the input to the Console.ReadLine().

Can someone help to sort out the issue so that I can give input to the Console.ReadLine() from VSCode itself?

@code-asher
Copy link
Member

I tried out netcoredbg with local VS Code and experienced the same problem so it looks like this is an upstream issue. I'm not sure if the problem lies with netcoredbg or VS Code or the C# extension though.

@nhooyr nhooyr added the bug Something isn't working label Aug 17, 2020
@code-asher code-asher added the upstream Needs to be fixed upstream label Aug 17, 2020
@MaxG-Git
Copy link

MaxG-Git commented Sep 9, 2020

Running into exact same issue, Im no expert at all but have been trying to fix this for a while and have no idea what to do. Any update or solution for this?

@code-asher
Copy link
Member

No updates, I haven't dug any further yet to see where the problem is.

@ktheticdev
Copy link

No updates, I haven't dug any further yet to see where the problem is.

Actually the problem is that netcoredbg doesn't support the "console" argument. But one can try to implement it

@code-asher
Copy link
Member

code-asher commented Nov 30, 2020 via email

@nhooyr nhooyr added this to To do in code-server via automation Dec 8, 2020
@jsjoeio jsjoeio added this to the Backlog milestone Apr 29, 2021
@stale
Copy link

stale bot commented Oct 27, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.

@stale stale bot added the stale This issue has not had activity in a while and will be closed label Oct 27, 2021
@stale stale bot closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale This issue has not had activity in a while and will be closed upstream Needs to be fixed upstream
Projects
No open projects
Development

No branches or pull requests

6 participants