question

VladimirOstapov-4841 avatar image
0 Votes"
VladimirOstapov-4841 asked VladimirOstapov-4841 commented

Debug - Start without debugging does not show the report list when exception occurs.

Dear Sirs, I use VS19 and of course I use the Debug - Start without debugging option. In previous versions it did show the repot list when I run the application and some exception occurs. So I was able to get the debug information directly at this stage. I mean the exception type and the line where it did happen. But after some updates of VS19 it stops to do it and simply close the application without any information what did happen. And I need to start debug mode in order to get the information about the error. The same thing happens during the compile time. The compilation stops simply without any information. And earlier it did show the error code at least. So, the question is – which settings I need to do in order to make the debug information window appearing during the compilation time and in Start Without Debugging mode? Best regards, Vladimir

vs-generalvs-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.

TianyuSun-MSFT avatar image
0 Votes"
TianyuSun-MSFT answered TianyuSun-MSFT edited

Hi @VladimirOstapov-4841 ,

Welcome to Microsoft Q&A forum.

Did you mean Output Window(View > Output) didn’t report(display) some error messages(error codes)? Have you set MSBuild project build output verbosity option to Normal or Detailed (Tools > Options > Projects and Solutions > Build And Run)?

Please try to create and test in a simple newly created project to see if this issue persists.

BTW, VS has an feature to reset the VS settings, you can check this document: Reset Settings.

Best Regards,
Tianyu


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.

· 2
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.

Thank you for the hint.
It did solve the one problem - the output window during the compilation time is being shown now.
But during the run time it is the same. The application closes simply with no info.
I need to see the separate window which looks like a CMD window, or console application window, where I can see the exception type and line in the program. It did look like that earlier.

0 Votes 0 ·

Hi @VladimirOstapov-4841 , thank you for your feedback. So are you looking for “Error List” Window? Or may be this prompt(Exception Thrown)?

81848-image.png

81820-image.png


0 Votes 0 ·
image.png (23.4 KiB)
image.png (16.0 KiB)
VladimirOstapov-4841 avatar image
0 Votes"
VladimirOstapov-4841 answered VladimirOstapov-4841 commented

Thank you for the answer.
Please have a look at the picture below.
You can see the Information window when I am in debugging mode.
And I need to have this in Start Without Debugging mode.
It was with black background, like consoll apps look like.

81884-pic1.png


81878-pic1.png





pic1.png (32.0 KiB)
pic1.png (32.0 KiB)
· 2
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.

Hi @VladimirOstapov-4841 , thanks for sharing me the screenshots. Exceptions are related to debug, normally information of exceptions are reported during debugging, I checked features in Visual Studio but I didn’t find any feature that meet your requirements. However, it seems you’d like to keep the program working, when the exceptions appear. How about using “try – catch” in debugging? It will skip the exceptions and report the exceptions in output window when debugging, and keep the program still work without breaking the program.

0 Votes 0 ·