Opens the specified executable file to be debugged.
Devenv /debugexe ExecutableFile
Arguments
- ExecutableFile
-
Required. The path and file name of an .exe file.
If the .exe file is not found or does not exist, no warning or error is displayed and Visual Studio starts normally.
Remarks
Any strings following the ExecutableFile parameter are passed to that file as arguments.
Example
The following example opens the file MSTest.exe for debugging.
devenv.exe /debugexe "D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" /testcontainer:D:\testsource\******Bin\********UnitTest.TestCase.dll /test:UnitTests /detail:errormessage /detail:errorstacktrace /resultsfile:D:\testsource\results.trx
devenv.exe /debugexe "D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe" /testcontainer:D:\testsource\******Bin\********UnitTest.TestCase.dll /test:UnitTests /detail:errormessage /detail:errorstacktrace /noisolation /resultsfile:D:\testsource\results.trx
you can change the exe being debug property, like working directory.
http://msdn.microsoft.com/en-us/library/ms241274(VS.80).aspx