Unable to Debug with Visual Studio 2010

Add-in Express™ Support Service
That's what is more important than anything else

Unable to Debug with Visual Studio 2010
 
David Wise




Posts: 4
Joined: 2011-02-14
I am using Windows 7 64-bit, Visual Studio 2010 Premium and IE8 and am unable to get interactive debugging to work using the F5 option in Visual Studio. In fact, the only way I can get it to work is to use F5 to start IE, then shut that down, then start a new instance of IE and then attach to that for debugging. Needless to say, this process gets old very fast.

I have searched the forums here and have tried every solution I have run across (short file name, short folder name, iexpress.config, switching from 3.5 to 4.0 and back) and nothing makes any difference.

Any help would be greatly appreciated as this project has a tight deadline.

Thanks,
Posted 14 Feb, 2011 08:48:38 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi David,

To debug add-ons in IE8 and higher you need to attach to IE sub-processes into which your add-on is loaded. You can also disable the Protected mode and add a message box to the OnConnect event handler. Then you need to start IE via a shortcut or the Start menu. When the message box appears, you can connect/attach to the IE sub-process to debug the add-on code.
Posted 14 Feb, 2011 11:23:22 Top