如何使 Google Chrome JavaScript 控制台持久化? [英] How to make Google Chrome JavaScript console persistent?

查看:51
本文介绍了如何使 Google Chrome JavaScript 控制台持久化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我正在构建一个动态站点,因此我需要跟踪页面之间的更改,即.Ajax 调用、POST、GET 和类似的东西.

Since I'm building a dynamic site, I need to track the changes between pages, ie. Ajax calls, POST, GET stuff and similar stuff.

我正在寻找与 Firebug 相同的功能(您可以在其中启用持久性",并且每次重新加载页面或提交表单时都不会清除控制台.

I'm looking for the same functionality like in Firebug (where you can enable "persistent" and the console is not cleared every time you reload a page or submit a form.

那么,我的问题是:有没有办法让 Google Chrome JavaScript 控制台持久化?(如果是,如何?)

So, my questions is: is there a way to make Google Chrome JavaScript console persistent? (And if yes, how?)

更新:复制这里的答案,如果有人还在寻找这个,Chrome 14+ 在开发者工具 > 设置中有一个标记为控制台:保留登录导航"的设置.

Update: Copying the answer here, if anyone's still looking for this, Chrome 14+ has a setting in Developer Tools > Settings labelled "Console: Preserve log on navigation".

更新 2:通过在控制台中右键单击,最新版本的 Chrome(33 岁以上)具有此选项.

Update 2: the latest versions of Chrome (33+) have this option by right-clicking in the console.

更新 3(2017 年末):最新版本的 Chrome(60+)通过打开控制台,点击右上角的齿轮并选择保留日志"来提供此选项

Update 3 (late 2017): The latest versions of Chrome (60+) have this option by opening the console, clicking the gear in the top right corner and selecting "preserve log"

推荐答案

如果有人还在寻找这个,我在 Chrome 15.0.874.58 beta-m 上,我在 Developer Tools > Settings 中有一个复选框em> 标记为控制台:保留登录导航".干得好.

If anyone's still looking for this, I'm on Chrome 15.0.874.58 beta-m and I have a checkbox in Developer Tools > Settings labelled "Console: Preserve log on navigation". Does the job nicely.

这篇关于如何使 Google Chrome JavaScript 控制台持久化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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