javascript - IE11 F12 debugger not attaching -


i've added debugger statement javascript that's executed on page load on page b. i've opened page a, opened f12 debugger tools. have "break on exceptions" enabled in f12 debugger tools.

i've clicked on link opens page b. i'm shown dialog asking me if want debug visual studio 2010 or visual studio 2012. why didn't open javascript in f12 debugger tools?

to make weirder, if close f12 developer tools , click link page b don't dialog asking me if want debug vs 2010 or vs 2012.

-eric

the dialog you're seeing "just in time" debugger dialog. shown on 2 conditions:

  1. the page in debug mode - in scenario happening because page in debug mode , page b has inherited setting (it in same process , setting per process). if f12 isn't open page won't in debug mode (unless configured elsewhere) , debugger keyword ignored.
  2. the page encounters reason break (e.g. debugger keyword or unhandled exception) - in case it's debugger keyword

ie designed way allow other debuggers, such visual studio, attach debug ie rather restricting f12 tools. have visual studio installed seeing dialog visual studio installs (you can read more on msdn).

the easiest solution launch f12 on page b , should work. unfortunatley need debug startup code you'll need refresh page b in order run code f12 can't open before. assumes can refresh page b. if not it's bit trickier there should way. (just let me know!)


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -