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

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

    Follow these steps if you have Visual Studio 2017-2019:

    1. File > Open > Project/Solution
    2. Choose your .exe
    3. Debug > Start Debugging

    Much easier than other suggestions: you don't have to mess with project properties, and no extensions are needed.

提交回复
热议问题