• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 399
  • Last Modified:

variable post-build command execution

Hi

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 ?

Szafran
0
szafran
Asked:
szafran
  • 2
1 Solution
 
Geert GOracle dbaCommented:
you could check if the debughook is not 0
if not 0, then the program is running from the debugger
0
 
szafranAuthor Commented:
can you post a statement how can i check for it in the post-build command line ?
0
 
Geert GOracle dbaCommented:
if debughook <> 0 then
  ShowMessage('debugging');

what is exactly you are debugging, with those post-build commands ?
change the exe name ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now