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

I see print outputs twice in Debug Console when launch config uses "console": "internalConsole" #827

Closed
bersbersbers opened this issue Jan 26, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bersbersbers
Copy link

Issue Type: Bug

Launch config:

{
    "name": "Python: Current File",
    "type": "python",
    "request": "launch",
    "program": "${file}",
    "console": "internalConsole",
}

Then debug any file.

In Debug Console, enter print(2).

Expected Behaviour

I see "2" (once)

Expected vs. Actual Behaviour

image

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.0
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default

Extension version: 2021.12.1559732655
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
Remote OS version: Linux x64 5.3.18-lp152.44-default

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Jan 26, 2022
@fabioz fabioz closed this as completed Jan 26, 2022
@fabioz fabioz reopened this Jan 26, 2022
@int19h int19h added the bug Something isn't working label Feb 23, 2022
@fabioz
Copy link
Collaborator

fabioz commented Feb 25, 2022

This happens because when evaluating we capture the output and send it to be shown in the DEBUG CONSOLE, but in this case the output was already going there, so, it's shown twice.

I'm taking a look on how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants