Archive for July, 2014

Debugging Embedded IE Browser with Visual Studio

July 31, 2014

Some Windows applications (like Skype – where I work) use an embedded IE browser to display some content.  With Visual Studio 2013 you can easily debug JavaScript/CSS in these types of applications.  To do this, in Visual Studio select ‘Debug -> Attach to Process’.  Then in ‘Attach to:’ select ‘Script code’ and finally in ‘Available Processes’ select your application.  After hitting ‘Attach’ you’ll be able to use the DOM Explorer (Debug -> Windows -> DOM Explorer) and view JavaScript console (Debug -> Windows -> JavaScript Console).  Also you can view JavaScript code in the ‘Solution Explorer’ and set breakpoints.  Breakpoints can also be set in minified code by selecting desired position in code then right clicking and selecting ‘Breakpoint -> Insert Breakpoint’

Advertisements