当当前浏览器窗口关闭时,如何防止Chrome开发人员工具关闭? [英] How do I prevent Chrome developer tools from closing when the current browser window closes?

查看:425
本文介绍了当当前浏览器窗口关闭时,如何防止Chrome开发人员工具关闭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用chrome开发人员工具调试与Twitter oauth有关的问题.

I'm trying to use the chrome developer tools to debug an issue I'm having with Twitter oauth.

当出现oauth窗口时,我打开开发者工具以监视请求-但是一旦oauth窗口关闭,开发者工具窗口也将关闭.我希望能够保持开发人员工具窗口保持打开状态,以便检查发出的请求.

When the oauth window appears, I open the developer tools to monitor the requests - but as soon as the oauth window closes the developer tools window is also closed. I'd like to be able to keep the developer tools window open so that I can inspect the requests made.

这可能吗?

推荐答案

不是一个完美的解决方案,但是您可以通过打开以下复选框来在事件Window.closeunload上添加断点:

Not a perfect solution, but you can add breakpoints on the events Window.close and unload by turning on the checkboxes at:

Developer tools -> "Sources" tab -> Event Listener Breakpoints -> Window -> close

还有

Event Listener Breakpoints -> Load -> unload

尝试同时标记两者,然后看看哪个最适合您

Try to mark both and see which one works best for you

这篇关于当当前浏览器窗口关闭时,如何防止Chrome开发人员工具关闭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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