-
Notifications
You must be signed in to change notification settings - Fork 69
Debug Console does not show output from the c/c++ streams #1728
Comments
I believe the reason this happens is because the console output just redirects This may be fixed by the refactor branch where |
Here's just one more example:
It's not just unimportant information, it's also actual |
This is fixed by ptvsd 5, at least for "launch" scenarios where we can redirect the process output from the outside - it now captures everything that is written to stdout or stderr, regardless of how that is done. |
Should this be fixed in VS Code release (or insider) builds yet? The release notes for vscode-python 2020.1.0 (6 January 2020) say:
but I am still seeing this issue with 2020.1.58038 (13 January 2020) on VS Code 1.42.0, Edit: I noticed that you need to be in an experiment for this, microsoft/vscode-python#9320 (comment), which I seem to be unable to join (in fact, I don't arrive at joining any experiment succesfully). So regarding this issue, I probably have to be patient. |
Instructions for joining the experiment are at: #1706 (comment) (note that you have to get the insiders version, change the settings as described and then restart vscode). |
Thanks, @fabioz. I had tried using
before and I also tried the VSIX way now, but I am simply not seeing the expected
and also, I am not seeing the test explorer (I added that experiment because it seemed easier to check if experiment opt-in is working). I have 2020.3.62207-dev installed now (same as the daily insider before), and
|
Which |
@fabioz correct, yes, I am editing |
One thing different in my case is that those settings are in @karthiknadig @int19h do you have any suggestions here? (is there some way to diagnose it/get logs for that?) |
Done that: VS Code 1.42.0 using 2020.3.62207-dev, editing
|
@bersbersbers The only time I see this is if experiments are disabled via |
@karthiknadig I have double-checked that I don't have this set anywhere; I have now also set I have also disabled all other extensions and restarted VS Code - same thing. I noticed that I had Python 3.8.1 and still Python 3.7.5. installed, so I uninstalled Python 3.7.5 - no luck. |
@bersbersbers can you file a bug on the extension. This looks like an issue with how experiments are handled. Please share your settings file contents when you file the issue. |
@karthiknadig done. |
I am able to join experiments again (needed to set |
Environment data
Actual behavior
Debug Console shows
Expected behavior
Debug Console should show
Steps to reproduce:
Run this code (
Bug.py
) with"console": "internalConsole"
:Then, run
py Bug.py
on the console, seeing the expected output.This sounds related to #1658, but the
"subProcess": true
workaround suggested there does not do anything.The text was updated successfully, but these errors were encountered: