How do I attach Visual Studio to a process that is not started yet?

前端 未结 8 1201
不思量自难忘°
不思量自难忘° 2020-12-02 07:41

I have .NET program that can\'t be run from Visual Studio for some reasons (Excel file created from an Excel 2010 template project) for which I need to debug startup events.

8条回答
  •  情书的邮戳
    2020-12-02 08:04

    Actually you can; you don't attach to it, you start it. On the properties of your project, on the Debugging tab, specify the path of the program you want to attach to in the "Command" textbox.

    You can also enter any command-line arguments for the program in the "Command Arguments" box:

    Ensure that "Attach" is set to "No".

提交回复
热议问题