views:

1912

answers:

3

When I execute my C++ code (which uses the CGAL library) under debug mode, I see a lot of debug messages in the Output window about a first-chance exception CGAL::Uncertain_conversion_exception. I am aware of what a first-chance exception is.

Now, how do I turn off the display of debug messages for this one kind of exception (CGAL::Uncertain_conversion_exception)?

I like my debug messages as detailed as possible, but once I know what a certain exception is about and I have dealt with it, I would like it to go away. For example, in this case the CGAL exception is supposedly naive (and informative) and not a cause for concern. I would like to turn it off, but still be able to keep my eyes open for any other (new) first-chance exceptions. Is this possible in Visual Studio 2008? Am I asking for too much?

A: 

Debug->Exceptions...

You should be able to add your exception and then un-check it.

jeffamaphone
Ashwin
A: 

I don't think that will be possible to do using VS2008. However, you can use the DbgView.exe and set the filter to include/exclude the strings you want to display.

Naveen
First-chance exceptions don't display anything in DbgView. The OP is asking how to make the Visual Studio debugger stop displaying them.
bk1e
+1  A: 

I don't think there is a way.

You can right-click into the output window and disable all exception messages, but it doesn't come with anymore of a filtering ability.

That said, if you're desperate, you can save the output, filter it, and, using a simple tool added to the Tools menu, dump it back into the output window (where it appears under your tool's title instead of "Debug"). I've done this before, but usually this is too much hassle for too little gains.

sbi