variable post-build command execution

Posted on 2009-02-17
Last Modified: 2013-11-22

I'm using post-build commands to do some things after building my project. Unfortunatelly those commands make some changes to the exe file that prevent me from debugging. Is the any way to make those commands execute only when I do a build, and not when I run for debugging ?

Question by:szafran
    LVL 36

    Expert Comment

    by:Geert Gruwez
    you could check if the debughook is not 0
    if not 0, then the program is running from the debugger

    Author Comment

    can you post a statement how can i check for it in the post-build command line ?
    LVL 36

    Accepted Solution

    if debughook <> 0 then

    what is exactly you are debugging, with those post-build commands ?
    change the exe name ?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now