如何在Microsoft Edge(Chromium)浏览器中保存浏览器控制台日志

发布于 2025-02-13 08:10:22 字数 237 浏览 1 评论 0原文

我有一个主页,该页面正在调用弹出页面。我已经在OnBeForeunload事件中编写了控制台日志,该事件将在关闭弹出窗口时称为。我希望这些日志研究一个问题。当我调试JS时,这个问题是不可再现的。因此,我想要在关闭弹出窗口时编写的控制台日志而无需调试。但是,当我关闭弹出窗口时,弹出窗口会消失。我还从开发人员工具>控制台>设置部分。但这并没有解决我的问题。选择此选项后,我也无法查看任何日志。 请帮助我解决这个问题。

I have one main page which is calling a popup page. I have written console logs in onbeforeunload event which will be called when I will close the popup window. I want these logs to investigate one issue. The issue is not reproducible when I am debugging the the JS. So I want console logs written at the time of closing the popup window without debugging. But when I am closing the popup window the logs are getting disappeared with the popup window. I have also checked the preserve log checkbox from the Developer tool> Console> Setting section. But it didn't solve my issue. I am unable to view any logs even after selecting this option.
Kindly help me to solve this issue.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文