I have a .NET program that for some reason cannot be started from Visual Studio (the Excel file is created from the Excel 2010 project template), for which I need to debug launch events.
If I want to debug events that occur after the initialization of the program, there are no problems. I run the program from Explorer, attach the process to Visual Studio, and add some breakpoints to the code. But here I need to set breakpoints on trigger events. I need to be able to attach processes to Visual Studio, not depending on the PID, but on the specific name of the process or any other solution that will work.
Of course, adding Thread.Sleep(1000) to my launch events to give me time to attach the process in Visual Studio is out of the question!
debugging process visual-studio
Ucodia Nov 17 '11 at 13:09 2011-11-17 13:09
source share