Chrome开发工具暂停使用黑盒子脚本中的异常 [英] Chrome dev tools pauses on exceptions in blackboxed script

查看:624
本文介绍了Chrome开发工具暂停使用黑盒子脚本中的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个JavaScript文件,我在Chrome开发人员工具中被黑盒子化,而我的调试器设置为暂停未捕获的异常。然而,开发工具继续暂停在黑盒子JS文件中的未捕获的异常(见下面的屏幕截图)。这是Chrome bug吗?还是需要一个额外的步骤,使Chrome在黑盒子脚本中停止暂停的例外情况?

I have a JavaScript file that I have blackboxed in the Chrome developer tools and I have the debugger set to pause on uncaught exceptions. However, the dev tools continues to pause on uncaught exceptions in the blackboxed JS file (see screenshot below). Is this a Chrome bug? Or is there an additional step required to make Chrome stop pausing on uncaught exceptions in blackboxed scripts?

根据 https://developer.chrome.com/devtools / docs / blackboxing


当你黑框一个脚本时会发生什么?

What happens when you blackbox a script?

从库代码抛出的异常不会暂停(如果启用了
异常的暂停)

Exceptions thrown from library code will not pause (if Pause on exceptions is enabled)

所以这似乎或者像一个bug,或者我忽略了一些明显的东西。

So this seems either like a bug, or I'm overlooking something obvious.

推荐答案

这个问题在56.0.2924.87版本中是针对我的。

This issue is fixed for me on version 56.0.2924.87.

如果我在这个版本上blackbox一个脚本,调试器不会停止在throw语句上,即使暂停在c检查异常。

If I blackbox a script on this version, the debugger does not stop anymore on a throw statement even when"pauses on caught exceptions" is checked.

这篇关于Chrome开发工具暂停使用黑盒子脚本中的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆