Skip to content

[BUG] Print does not work in the debugger in the latest versions #1016

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

Closed
avraam-inside opened this issue Aug 15, 2022 · 3 comments
Closed

Comments

@avraam-inside
Copy link

avraam-inside commented Aug 15, 2022

print in the debugger via pytest DOES NOT WORK in the latest version of the extension

image

And in the recent version - it works:

image

This problem has been hanging for several months. Please fix it.

PS: it is impossible to start a bug report via vscode, a screenshot is not inserted there as conveniently as directly in github, please give the opportunity to write bug reports directly through github, outside of the unfinished process in VSCode.

@avraam-inside avraam-inside changed the title the print does not work in the debugger in the latest versions [BUG] Print does not work in the debugger in the latest versions Aug 15, 2022
@cpinamtz
Copy link

cpinamtz commented Aug 15, 2022

The latest version is the 2022.12.0 one and print statement works ok.

image

@avraam-inside
Copy link
Author

OK, I updated Vs Code, indeed the extension was updated to 2022.12.0 - but the problem persists. I run the debugger via pytest

image

Everything works fine in the old version. (2022.2.19)

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Aug 15, 2022
@fabioz
Copy link
Collaborator

fabioz commented Aug 15, 2022

This is expected if you're using pytest because pytest itself captures the output.

See: #899 (comment) for details for how to deal with that.

p.s.: There's already a related issue to pass --capture=no when debugging with pytest: microsoft/vscode-python#19322

@fabioz fabioz closed this as completed Aug 15, 2022
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

4 participants