即使在窗口关闭后,Chrome Dev Tools也可以保持打开状态? [英] Chrome Dev Tools is it possible to keep open even after window closes?

查看:836
本文介绍了即使在窗口关闭后,Chrome Dev Tools也可以保持打开状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要查看我无法控制的特定网站的网络流量。问题是网站在一个点触发弹出窗口,当特定上传事件完成时会自动关闭。

I need to see the network traffic for a particular site of which I have no control. The problem is that the site at one point triggers a pop-up which automatically closes when a particular upload event is completed.

我需要查看的HTTP请求,仅在关闭时触发,即上载完成时。一旦窗口关闭,开发工具窗口也会关闭。

The HTTP requests I need to see, are only triggered at the moment of close which is when the upload completes. As soon as the window closes, so does the Dev Tools window.

有没有办法强制它保持打开状态? IE和Firefox怎么样?

Is there any way to force it to stay open? What about IE and Firefox?

非浏览器特定的其他工具不能提供我需要的数据。我知道Chrome会 - 如果它只挂了足够长的时间让我看到它。

Other tools that are not browser specific are not giving me the data I need. I know Chrome will - if only it hung around long enough for me to see it.

推荐答案

你可以设置窗口关闭事件断点。这样调试器就会阻止widnow(弹出窗口)关闭。

You could set an window close event breakpoint. This way the debugger stops the widnow (popup) from closing.

devtools - > 脚本 (或 sources - > 事件监听器断点 - > 窗口 - > 关闭

devtools -> scripts (or sources) -> event listener breakpoints -> Window -> close

链接到 Chromium rfc

这篇关于即使在窗口关闭后,Chrome Dev Tools也可以保持打开状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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