/DebugExe (devenv.exe)

開啟要偵錯的指定可執行檔。

語法

devenv /DebugExe ExecutableFile

引數

  • ExecutableFile

    必要。 .exe 檔案的路徑和檔案名稱。 如果 .exe 檔案找不到或不存在,則不會顯示任何警告或錯誤,而 Visual Studio 會正常啟動。

備註

ExecutableFile 參數後面的任何字串都會當成引數傳遞給該檔案。

Visual Studio 會剖析在 Devenv 命令行參數符合的 ExecutableFile 參數之後的任何字串。 您可以使用雙引弧括住參數,以防止Visual Studio剖析命令行參數。

範例

下列範例會開啟 MyApplication.exe 檔案以進行偵錯。

devenv /debugexe MyApplication.exe

另請參閱