Skip to content

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

Closed

Description

@SaiTeja390

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?

Activity

  1. code-asher commented on Aug 13, 2020

    @code-asher
    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.

  2. MaxG-Git commented on Sep 9, 2020

    @MaxG-Git

    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?

  3. code-asher commented on Sep 9, 2020

    @code-asher
    Member

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

  4. ktheticdev commented on Nov 29, 2020

    @ktheticdev

    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

  5. code-asher commented on Nov 30, 2020

    @code-asher
    Member
  6. added this to the Backlog milestone on Apr 29, 2021
  7. stale commented on Oct 27, 2021

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamNeeds to be fixed upstream

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions