devenv.exe /DebugExe debug unitcase

 

Opens the specified executable file to be debugged.

Devenv /debugexe ExecutableFile
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.

Any strings following the ExecutableFile parameter are passed to that file as arguments.

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
posted @ 2009-11-30 11:54  Zhongjian Zhang  阅读(496)  评论(0编辑  收藏  举报