Using IE11 on Windows 10/64 with Visual Studio 2015/3 for debugging an ASP.NET WebForms application I notice a strange behaviour when I want to have a look at the runtime HTML source using F12 tools:
During debugging I hit F12 on IE 11 to have a look at the source. Then, when a JavaScript error occurs, IE11 pops up a dialog asking me to select a debugger:
This is very annoying because I'm usually already typing a search phrase into the search field. When the dialog box pops up while I'm typing and hitting [RETURN], a new Visual Studio instance gets unintentionally launched.
Why doesn't IE11 use the already running Visual Studio debugger to show JavaScript errors?
- Is Disable script debugging (Internet Explorer) checked?
- Is Disable script debuggin (Other) checked?
I have both of them checked and don't experience the issue you are dealing with.
Mark all posts that give the desired result the answer. If you only mark the last that gave you clarification because you misread an earlier post others will be confused. Some of us are here to help others and our point to post ratio matters.
I comprehend. Yet, my question is less how to suppress the error but rather: Why doesn't Visual Studio 2015/3 debugger break into this JavaScript error?
Disabling this option will result in nothing to happen when I open F12 tools. But that's not what I want. If there is an error I want VS debugger to recognize it and break.
Maybe don't disable the "Other" debugger in Internet Options?
Mark all posts that give the desired result the answer. If you only mark the last that gave you clarification because you misread an earlier post others will be confused. Some of us are here to help others and our point to post ratio matters.
This is very annoying because I'm usually already typing a search phrase into the search field. When the dialog box pops up while I'm typing and hitting [RETURN], a new Visual Studio instance gets unintentionally launched.
Why doesn't IE11 use the already running Visual Studio debugger to show JavaScript errors?
If your application contains untrusted code, a dialog box with a security warning appears. This dialog box enables you to decide whether or not to proceed with debugging. Even if the application is running locally, that does not necessarily mean it can be
trusted.
You can enable or disable Just-In-Time debugging from the Visual Studio
Tools / Options dialog box.
To enable or disable Just-In-Time debugging
Open Visual Studio. On the Tools menu, click Options.
In the Options dialog box, select the Debugging folder.
In the Debugging folder, select the Just-In-Time page.
In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types:
Managed, Native, or Script.
To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
Just-In-Time debugging launches Visual Studio automatically when an exception or crash occurs in an application that is running outside Visual Studio. This enables you to test your application when Visual Studio is not running, and begin debugging with Visual
Studio when a problem occurs.
Just-In-Time debugging works for Windows desktop apps. It does not work for Windows Universal apps, and it does not work for managed code that is hosted in a native application, such as Visualizers.
If you don’t see the dialog when the program crashes, this might due to Windows Error Reporting settings on your computer. For more information, see .WER
Settings.
Member
25 Points
114 Posts
How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in a V...
Sep 08, 2016 05:04 PM|AxelD|LINK
Using IE11 on Windows 10/64 with Visual Studio 2015/3 for debugging an ASP.NET WebForms application I notice a strange behaviour when I want to have a look at the runtime HTML source using F12 tools:
During debugging I hit F12 on IE 11 to have a look at the source. Then, when a JavaScript error occurs, IE11 pops up a dialog asking me to select a debugger:
This is very annoying because I'm usually already typing a search phrase into the search field. When the dialog box pops up while I'm typing and hitting [RETURN], a new Visual Studio instance gets unintentionally launched.
Why doesn't IE11 use the already running Visual Studio debugger to show JavaScript errors?
Contributor
7048 Points
2189 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 08, 2016 05:29 PM|ryanbesko|LINK
Check your IE settings:
- Internet Options
- Advanded tab
- Under the Browsing category:
- Is Disable script debugging (Internet Explorer) checked?
- Is Disable script debuggin (Other) checked?
I have both of them checked and don't experience the issue you are dealing with.
Member
25 Points
114 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 08, 2016 07:36 PM|AxelD|LINK
I comprehend. Yet, my question is less how to suppress the error but rather: Why doesn't Visual Studio 2015/3 debugger break into this JavaScript error?
Disabling this option will result in nothing to happen when I open F12 tools. But that's not what I want. If there is an error I want VS debugger to recognize it and break.
Contributor
7048 Points
2189 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 08, 2016 08:18 PM|ryanbesko|LINK
Maybe don't disable the "Other" debugger in Internet Options?
Member
25 Points
114 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 10, 2016 08:00 AM|AxelD|LINK
nope ... VS 2015 just doesn't break execution.
All-Star
17652 Points
3510 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 12, 2016 03:14 AM|Chris Zhao|LINK
Hi AxeID,
If your application contains untrusted code, a dialog box with a security warning appears. This dialog box enables you to decide whether or not to proceed with debugging. Even if the application is running locally, that does not necessarily mean it can be trusted.
You can enable or disable Just-In-Time debugging from the Visual Studio Tools / Options dialog box.
To enable or disable Just-In-Time debugging
Open Visual Studio. On the Tools menu, click Options.
To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
reference:
https://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx
Best Regards,
Chris
Member
25 Points
114 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 12, 2016 12:27 PM|AxelD|LINK
I just checked about these options. They are already set:
So this part of the debugger doesn't seem to cause trouble.
All-Star
17652 Points
3510 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 16, 2016 02:46 AM|Chris Zhao|LINK
Hi AxeID,
Have you tried to disable Just-In-Time?
To disable Just-In-Time debugging by editing the registry
1.On the Start menu, search for and run regedit.exe
2.In the Registry Editor window, locate and delete the follow registry entries:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger
3.If your computer is running a 64-bit operating system, delete the following registry entries also:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger
4.Take care not to accidentally delete or change any other registry keys.
5.Close the Registry Editor window.
Best Regards,
Chris
Member
25 Points
114 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 20, 2016 09:18 AM|AxelD|LINK
It looks like the debugging message I receive when opening F12 Debugger Tools is based in a JavaScript error inside F12 Debugger Tools itself:
Would you suggest me to forward my observation to the F12DT team?
Do they have a Connect/GitHub channel? And are they still working on F12DT for IE11?
Thanks for enlightening me.
All-Star
17652 Points
3510 Posts
Re: How can I keep Internet Explorer 11 from popping-up debugger notification when I'm already in...
Sep 27, 2016 09:45 AM|Chris Zhao|LINK
Hi AexID,
Just-In-Time debugging launches Visual Studio automatically when an exception or crash occurs in an application that is running outside Visual Studio. This enables you to test your application when Visual Studio is not running, and begin debugging with Visual Studio when a problem occurs.
Just-In-Time debugging works for Windows desktop apps. It does not work for Windows Universal apps, and it does not work for managed code that is hosted in a native application, such as Visualizers.
If you don’t see the dialog when the program crashes, this might due to Windows Error Reporting settings on your computer. For more information, see .WER Settings.
Best Regards,
Chris