Chrome DevTools脚本blackboxing无效 [英] Chrome DevTools script blackboxing not working

查看:1120
本文介绍了Chrome DevTools脚本blackboxing无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用chrome devtools的新功能blackboxing a script。

此Chrome Devtools文章列出了脚本黑盒功能

I am trying to use the new feature of chrome devtools "blackboxing a script".
This Chrome Devtools article lists script blackboxing functionality


  • 从库代码抛出的异常不要暂停(如果暂停在
    异常启用)

  • 进入/退出/过渡绕过库代码

  • 事件侦听器断点不要打破库代码

  • 调试器不会暂停在库代码中设置的任何断点。

  • Exceptions thrown from library code will not pause (if Pause on exceptions is enabled)
  • Stepping into/out/over bypasses the library code
  • Event listener breakpoints don't break in library code
  • The debugger will not pause on any breakpoints set in library code.

最终的结果是您正在调试应用程序代码而不是第三方资源。

The end result is you are debugging your application code instead of third party resources.

我已经尝试通过右键单击源文件直接对文件进行黑盒标签,一切正常,黄色通知显示在文件这个脚本在调试器中被黑盒子的顶部。奇怪的是上面列出的任何一个点都不起作用,调试器通过blackboxed脚本也可以通过事件监听器引用blackboxed脚本。我还启用了Chrome的开发人员工具实验:// flags /

这些选项设置我以为我会没事,我也有最新的chrome在这个时候39.0 beta,我不知道什么我丢了。 有没有人通过这个?

Thnx!

I have tried to blackbox the file directly by right clicking the file from source tab and everything goes right the yellow notification shows at the top of file "This script is blackboxed in debugger". Strangely none of the above listed points work, debugger goes through blackboxed script also event listeners reference the blackboxed script. I have also enabled Developer Tools experiments at chrome://flags/
With these options set i thought i would have been ok, i also have the latest chrome at this time 39.0 beta,i have no idea what i'm missing. Did anybody go through this?
Thnx!


推荐答案

在你的屏幕截图中,我可以看到一个断点。

In your screenshot, I can see a breakpoint.

如果你放了一个断点,它将永远是破坏的(除非当你禁用它),即使黑匣子处于活动状态。

If you put a breakpoint, it will always break (except if you deactivate it, of course), even with blackboxing being active.

这篇关于Chrome DevTools脚本blackboxing无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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