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 ?
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With