Skip to content

Allow setting a default value for launch config's "console" field if not explicitly specified #3169

@RandalSchwartz

Description

@RandalSchwartz

Describe the bug
As instructed, I set "console" : "terminal" in my launch.json. I expected that running my command-line app would then send output to the integrated terminal, and accept typing as stdin for the app.

No, the stdout still went to the debug console, and I am unable to provide input.

To Reproduce
Steps to reproduce the behavior:

  1. Set launch.json as indicated.
  2. Start dart debugging a CLI app that prints to stdout, and reads from stdin.

Expected behavior
I expected that running my command-line app would then send output to the integrated terminal, and accept typing as stdin for the app.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

  • VS Code version: 1.53.2 (mac)
  • Dart extension version: 3.19.2
  • Dart/Flutter SDK version: Dart SDK version: 2.12.0-259.16.beta (beta) (Tue Feb 23 00:10:18 2021 +0100) on "macos_x64"

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions