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

前端 未结 8 1203
不思量自难忘°
不思量自难忘° 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

    If there's no process then Visual Studio can't attach to it.

    However, you can set the startup program of your project to be something other than the output of your project.

提交回复
热议问题