Debugging Embedded IE Browser with Visual Studio

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: