variable post-build command execution

Posted on 2009-02-17
Medium Priority
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
  • 2
LVL 38

Expert Comment

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

Author Comment

ID: 23663860
can you post a statement how can i check for it in the post-build command line ?
LVL 38

Accepted Solution

Geert Gruwez earned 1960 total points
ID: 23664755
if debughook <> 0 then

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

807 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