Can I instruct the debugger to skip a statement

Posted on 2005-03-30
Medium Priority
Last Modified: 2010-04-24
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.

Question by:ilyaz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13662252
#ifndef _DEBUG


Author Comment

ID: 13662281
To jaime_olivares: I can't touch the code. Are there settings in the debugger, sort of like a breakpoint only a "skip point"?
LVL 55

Accepted Solution

Jaime Olivares earned 150 total points
ID: 13662424
>Are there settings in the debugger, sort of like a breakpoint only a "skip point"?
I think no.

Expert Comment

ID: 13671545
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
LVL 55

Expert Comment

by:Jaime Olivares
ID: 13916997
My answer to the original question is: NO

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question