I need to debug an application that is started from a one-click install. (VS 2010, Excel VSTO with Office 7). Based on login credentials supplied to the one-click installer
Juan's answer is the best if you have Visual Studio Installed. but if the target machne does not have it you may need to put in some kind of pause (I normally will put a dialog box as the first thing in main that makes it wait for me to attach) then use a remote debugger to attach to it on your machine