question

RonSipherd-9808 avatar image
0 Votes"
RonSipherd-9808 asked RonSipherd-9808 commented

Debug.print in VB 2019 produces no output

Not sure when this occurred - possibly when I upgraded from VS 2017 to 2019 - but the Debug.Print method has ceased to produce results for me.
The Output window opens at run time, but nothing appears in it.
Have checked
Options | Debugging | Output Window | All debug output | On

and don't recall making any changes that could prevent output.
Trying to print a string or a literal, no difference.
Creating a new project from scratch, no difference.
devenv.exe is 16.7.30523.14
I may be missing something obvious, but I can't find it.

vs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered RonSipherd-9808 commented

Hi @RonSipherd-9808 ,

Welcome to Microsoft Q&A!

Which version of Visual Studio are you using? Please update your VS to the latest version.

Then, please ensure that the option Redirect all Output Window text to the Immediate Window is unchecked. It is under Tools > Options > Debugging > General.

Besides, you can try to reset the vs settings by simply going over to Tools > Import and Export settings > Reset all settings.

Sincerely,
Anna


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.










· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That did it; thanks! I knew it was likely to be some simple thing like that, but I couldn't find it.

0 Votes 0 ·