Link to home
Start Free TrialLog in
Avatar of ilyaz
ilyaz

asked on

Can I instruct the debugger to skip a statement

I have an ASSERT statement in my C++ code that I want to skip when executing my program in the debug mode in C++ .NET. For various reasons, recompiling the code is not an option so I can't just comment out the statement and rebuild.

Thanks.
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

#ifndef _DEBUG
  ASSERT(...etcetera..);
#endif

Avatar of ilyaz
ilyaz

ASKER

To jaime_olivares: I can't touch the code. Are there settings in the debugger, sort of like a breakpoint only a "skip point"?
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Definately no 'Skip Point' or anything similiar.  The debugger only sits in the sidelines and watches the program execute.  It can choose what to watch, and call a timeout, but it can't change the outcome of the game (or decide to skip a play) :p
My answer to the original question is: NO