Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Supress output from Visual Studio output pane (C++)

When I run my Win32 project in the Visual Studio debugger, I get this huge screed of output about which DLLs were loaded, first-chance exceptions, and so on.

Is there a way that I can suppress this output?

Some day, I might want to know when 'C:\Windows\SysWOW64\ntdll.dll' was loaded, but normally I don't care. This is especially true when I'm running unit tests, and just want to be told whether any of the tests failed.

This stuff isn't output with console applications, but it is with windows applications. To give an example of what I mean, here are the first lines from the output of a recent unit-test run.

'MyProject.exe': Loaded 'C:\dev\MyProject\Testing\MyProject.exe', Symbols loaded.
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\dbghelp.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\user32.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll'
'MyProject.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll'

... and on and on ...
like image 202
Ryan Ginstrom Avatar asked Apr 22 '10 07:04

Ryan Ginstrom


2 Answers

Right click in the output window. You'll get a popup menu where you can de-select types of messages you don't want to see (e.g. Module Load and Module Unload messages). Unfortunately, it puts all the Exception Messages together, so (at least AFAIK) you can't exclude first chance exception messages (which you rarely care about) but keep second chance exception messages (which you usually do care about).

like image 118
Jerry Coffin Avatar answered Oct 03 '22 06:10

Jerry Coffin


Click with right mouse button on the Output window and switch off "Module Load Messages".

like image 36
Kirill V. Lyadvinsky Avatar answered Oct 03 '22 07:10

Kirill V. Lyadvinsky