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

Debugging broken on MacOS Catalina #366

Closed
conkerkh opened this issue Aug 14, 2020 · 5 comments
Closed

Debugging broken on MacOS Catalina #366

conkerkh opened this issue Aug 14, 2020 · 5 comments

Comments

@conkerkh
Copy link

Environment data

  • VS Code version: 2020.8.101144
  • Extension version (available under the Extensions sidebar): 2020.8.101144
  • OS and version: MacOS 10.15.6
  • Python version (& distribution if applicable, e.g. Anaconda): ANY
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: ALL
  • Relevant/affected Python-related VS Code extensions and their versions: -
  • Value of the python.languageServer setting: XXX

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

Debugging start and I'm able to step through pause etc.

Actual behaviour

After starting debugging debugger just hangs there, when debugging is stopped timeout appears in bottom right.

Steps to reproduce:

Start any debug session of python

@conkerkh
Copy link
Author

related microsoft/vscode-python#13433

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Aug 14, 2020
@karthiknadig
Copy link
Member

@conkerkh Can you please share some repro code? Also, try enabling debugger logs, see here for instructions: https://github.com/microsoft/debugpy/wiki/Enable-debugger-logs

@conkerkh
Copy link
Author

@karthiknadig
to be honest this simple code can reproduce mentioned problem, it seems to be related to "input()"

if __name__ == "__main__":
    while(True):
        s = input()
        print(s)

@karthiknadig
Copy link
Member

@conkerkh This occurs because of input(). Try adding "redirectOutput": true to your launch.json debug configuration, see #296 (comment). This was changed recently to allow better control of IO redirection.

@int19h
Copy link
Contributor

int19h commented Aug 18, 2020

This is a dupe of #370

@int19h int19h closed this as completed Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants