24

Is there a for-sure way to turn off JavaScript Exception breaking in Visual Studio?

I'm developing a C# module for a third party product, so I can't fix the JavaScript or remove it.

The Debugger will not respect the exception settings. I have turned off Breaking on all exceptions. I have gone the the option menu and disabled all JavaScript and Just-in-time debugging. Still, every time I debug this page, I break on an unhandled JavaScript exception; which happens every 10 seconds as the thirds party product keeps throwing errors.

Things I have turned off:

  1. Debug->Windows->Exception Settings-> (All boxes unchecked)
  2. Tools->Options->Debugging->General-> (All boxes unchecked with "Enable" and "JavaScript" like "Enable Java Script debugging"
  3. Tools->Options->Debugging->Just-In-Time->(All boxes unchecked)
1
  • make sure you restart visual studio! Commented Mar 14 at 18:06

6 Answers 6

38

You can go to Tools > Options > Debugging > General > and then in the right part almost like in the middle of the scroll you'll find the option to enable or disable JavaScript debugging.

Sign up to request clarification or add additional context in comments.

3 Comments

This doesn't work for me - I cannot seem to disable the debug adapter sadly
Didn't you read the SO's description.... He already said he tried that and it didn't work.
It worked after restarting the VS.
5

go to tools-> options-> debugging select general and uncheck enable javascript debugging

sample image

1 Comment

Didn't you read the SO's description.... He already said he tried that and it didn't work.
2

If you are running multiple project at start up like Angular SPA template then

  1. Right click solution
  2. Configure Startup Projects
  3. Set action to Run without Debugging

Comments

1

From the toolbar button that launches the debugger with your selected browser, there is a menu that can be expanded. That menu includes a submenu to enable or disable script debugging.

Comments

0

I tried all the above-mentioned solutions but was unable to remove the warning popup.

After a long debug I got that, in JavaScript code, somewhere I have added a debugger and that causing the warning.

Simply I removed all breakpoints by using the -

VS Studio Menu > Debug > Delete All Breakpoints

or

Shortcut : CTRL + SHIFT + F9

Comments

0

I resolved that resetting all environment settings.

Go to Tools -> Import and Export Settings -> Check "Reset All Settings" and next -> Check "No, Just reset.." and next. On this part, I did that to General, JavaScript, Web Development and Web Development (Code Only).

It's work for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.