Skip to content

Can't use Backspace when using Terminal mode for Debugging #2230

Closed

Description

@ahmadalzoubi13579
  • VSCode Version: 1.41.1
  • OS Version: Windows 10 Pro 64-bit (10.0, Build 18362)

Steps to Reproduce:

  1. create launch.json
  2. write "console": "terminal" in your configurations
  3. write the following code that take an input from user :
import 'dart:io';

main() {
  stdout.writeln('what is Your Name ?');
  String name = stdin.readLineSync();
  print('Welcome $name');
}
  1. start debugging

then i can input value , but i can't use backspace key to undo the text while i write in console.

Untitled

Activity

  1. added this to the v3.9.0 milestone on Jan 23, 2020
  2. added
    in dartRelates to running Dart programs
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Jan 23, 2020
  3. DanTup commented on Feb 13, 2020

    @DanTup
    Member

    @gogoIsComing I was (literally!) just looking at this! I can repro in both Stable and Insiders - what's the reason you closed it?

  4. DanTup commented on Feb 13, 2020

    @DanTup
    Member

    This happens even using the VS Code "local echo" sample code in the docs, and it's not clear whether it's fixable in the extension. I've opened microsoft/vscode#90618.

    Re-opening this issue because it seems a certain bug, and it's not clear if we need to do work here yet.

  5. reopened this on Feb 13, 2020
  6. ahmadalzoubi13579 commented on Feb 13, 2020

    @ahmadalzoubi13579
    Author

    @DanTup i already opened an issue microsoft/vscode#89139 (before current issue)
    and they closed it , cause they thought it is extension issue

    here the answer i got

  7. DanTup commented on Feb 13, 2020

    @DanTup
    Member

    @gogoIsComing ah, thanks! It may be an extension issue, but the sample code fails in the same way and I can't see a way in the API for us to handle it. I'll keep this open while waiting for a response though. Thanks!

  8. DanTup commented on Feb 13, 2020

    @DanTup
    Member

    Ok, looks like this is by-design in VS Code, so we'll need to fix another way. It seems silly to implement it as suggested (we'd end up with a lot of code just to pretend to be a terminal) so I'm going to switch from the pseudoterminal to a real terminal and use dart-lang/sdk#38418 to connect the debugger.

  9. changed the title [-]can't use Backspace in console during Debugging[/-] [+]Can't use Backspace when using Terminal mode for Debugging[/+] on Feb 13, 2020
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

    in dartRelates to running Dart programsin debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions