VS.NET 2005 debugging tip


I was debugging a VSTO project today and there was an error on opening a workbook. In order to drop into the debugger I stuck a message box in before the offending code, switched over to VS.NET and attached the debugger to the Excel process that had my workbook listed. Set a breakpoint at the line after the messgae box, click OK on the message box, and you drop right into the debugger.

Not very pretty and probably not the "right" way to do it, but fast and effective.

- Mike