Adding special behaviour to debug process

  • Thread starter Thread starter Dmitry Karneyev
  • Start date Start date
D

Dmitry Karneyev

Hi!
Does anyone know how to adjust (if it's possible) VS to copy a file from one
directory to another before debugging program?

Thanks.
 
Dmitry,

I don't think that there are pre-debug steps in the debugger. You would
have to have a batch file or something of the sort which would do it, and
then would run the debug version of your program. You can modify the
project so that instead of running your app, it will run your batch file,
which would then run the program (the debug build, of course).

Hope this helps.
 
Hi Nicolas!
Thanks for advice.
Is there a way to retrieve a script which VS currently using for
compliling/debugging my solution?

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

I don't think that there are pre-debug steps in the debugger. You would
have to have a batch file or something of the sort which would do it, and
then would run the debug version of your program. You can modify the
project so that instead of running your app, it will run your batch file,
which would then run the program (the debug build, of course).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
Hi!
Does anyone know how to adjust (if it's possible) VS to copy a file from one
directory to another before debugging program?

Thanks.
 
Dmitry,

What do you mean by retrieve a script?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
Hi Nicolas!
Thanks for advice.
Is there a way to retrieve a script which VS currently using for
compliling/debugging my solution?

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

I don't think that there are pre-debug steps in the debugger. You would
have to have a batch file or something of the sort which would do it, and
then would run the debug version of your program. You can modify the
project so that instead of running your app, it will run your batch file,
which would then run the program (the debug build, of course).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
Hi!
Does anyone know how to adjust (if it's possible) VS to copy a file
from
one
directory to another before debugging program?

Thanks.
 
By script I mean commands and parameters VS use to complile my solution.

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

What do you mean by retrieve a script?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
Hi Nicolas!
Thanks for advice.
Is there a way to retrieve a script which VS currently using for
compliling/debugging my solution?

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

I don't think that there are pre-debug steps in the debugger. You would
have to have a batch file or something of the sort which would do it, and
then would run the debug version of your program. You can modify the
project so that instead of running your app, it will run your batch file,
which would then run the program (the debug build, of course).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi!
Does anyone know how to adjust (if it's possible) VS to copy a file from
one
directory to another before debugging program?

Thanks.
 
Dmitry,

I don't think that you can get that from inside your program. The
reason is because you are not always going to be running your program from
within the context of a debugger.

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
By script I mean commands and parameters VS use to complile my solution.

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

What do you mean by retrieve a script?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dmitry Karneyev said:
Hi Nicolas!
Thanks for advice.
Is there a way to retrieve a script which VS currently using for
compliling/debugging my solution?

"Nicholas Paldino [.NET/C# MVP]" <[email protected]>
ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
Dmitry,

I don't think that there are pre-debug steps in the debugger. You
would
have to have a batch file or something of the sort which would do
it,
and
then would run the debug version of your program. You can modify the
project so that instead of running your app, it will run your batch file,
which would then run the program (the debug build, of course).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi!
Does anyone know how to adjust (if it's possible) VS to copy a
file
from
one
directory to another before debugging program?

Thanks.
 
Back
Top