Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set a pre debug event on Visual Studio 2008

I would like to run a task before I start debugging my program in visual studio. I need to run this task every time I debug my program, so a post-build event is not good enough.

I've looked into the "Debugging" tab of the settings, but there is no such option.

Is there any way to do that ?

like image 235
0x26res Avatar asked Oct 25 '22 12:10

0x26res


1 Answers

The only thing you can try (IMO) is experiment with the Command property in the Debugging page of your Project Properties ,but i don't think will work.

EDIT: if you want to start a batch file ,do it like this ,

yourbatch.bat $(targetPath)

and in yourbatch.bat you can call you program like this ,

call %1 %2 %3 %4 %5 %6 %7 %8 %9

where %2 ... %3 represent possible programm parameter (supplied by your IDE)

The only thing I am wondering about if your program will debugged directly (I think you may have to attach manually to it in the IDE)

like image 57
engf-010 Avatar answered Oct 27 '22 11:10

engf-010