简体   繁体   English

Visual Studio 2022 无法关闭 JavaScript 调试

[英]Visual Studio 2022 CANNOT turn off JavaScript Debugging

Is there a for-sure way to turn off JavaScript Exception breaking in Visual Studio?是否有确定的方法可以关闭 Visual Studio 中的 JavaScript 异常中断?

I'm developing a C# module for a third party product, so I can't fix the JavaScript or remove it.我正在为第三方产品开发 C# 模块,因此无法修复 JavaScript 或将其删除。

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.我已经进入选项菜单并禁用了所有 JavaScript 和即时调试。 Still, every time I debug this page, I break on an unhandled JavaScript exception;尽管如此,每次我调试这个页面时,我都会遇到一个未处理的 JavaScript 异常; which happens every 10 seconds as the thirds party product keeps throwing errors.由于第三方产品不断抛出错误,这种情况每 10 秒发生一次。

Things I have turned off:我关闭的东西:

  1. Debug->Windows->Exception Settings-> (All boxes unchecked)调试->Windows->异常设置->(未选中所有框)
  2. Tools->Options->Debugging->General-> (All boxes unchecked with "Enable" and "JavaScript" like "Enable Java Script debugging"工具->选项->调试->常规->(所有框都未选中“启用”和“JavaScript”,如“启用 Java 脚本调试”
  3. Tools->Options->Debugging->Just-In-Time->(All boxes unchecked)工具->选项->调试->即时->(所有框都未选中)

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.您可以 go 到Tools > Options > Debugging > General >然后在右侧几乎就像在滚动中间一样,您会发现启用或禁用 JavaScript 调试的选项。

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. Go 到工具 -> 导入和导出设置 -> 选中“重置所有设置”,然后下一步 -> 选中“否,只需重置..”,然后下一步。 On this part, I did that to General, JavaScript, Web Development and Web Development (Code Only).在这部分,我对 General、JavaScript、Web Development 和 Web Development(仅代码)进行了此操作。

It's work for me.这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM