Can I set Visual Stdio 2005 to ignore assertions in a specific region of code while debugging


OK, here's the scenario. I'm debugging my own app (C/C++) which is using some library developed by another team in the company. An assertion fails when my code generates some edge case. Its a pain because the assertion is not formulated correctly so the library function is working OK but I get all these interruptions where I just have to continue (lots as its in a loop) so I can get to the stuff I'm actually interested in. I have to use the debug version of the library when debugging for other reasons. The other team wont fix this till next release (hey, it works on our machine).

Can I tell the debugger to ignore the breakpoints asserted by this section of code (i.e. can it auto-continue for me).


If the code is triggering breakpoints on its own (by __debugbreak or int 3), you cannot use conditional breakpoints, as the breakpoints are not know to Visual Studio at all. However, you may be able to disable any such breakpoints you are not interested in by modifying the code from the debugger. Probably not what you want, because you need to repeat this in each debugging session, however still may be better than nothing. For more information read How to disable a programmatical breakpoint / assert?.

Need Your Help

MySql calling stored function from within a stored procedure causing error

sql mysql stored-procedures mysql-error-1064 stored-functions

I'm getting a 1064 error when trying to call a stored function from within a stored procedure. It only happens on the line where I try to do this: SET account_id = get_account_id(user);. What is ...

window.postMessage from web_accessible_resource to content script

javascript google-chrome-extension postmessage

i try to post a message from a web_accessible_resource to a content-script of my chrome extension.