admin管理员组文章数量:1128309
Since I'm building a dynamic site, I need to track the changes between pages, ie. Ajax calls, POST, GET stuff and similar stuff.
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.
So, my questions is: is there a way to make Google Chrome JavaScript console persistent? (And if yes, how?)
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".
Update 2: the latest versions of Chrome (33+) have this option by right-clicking in the console.
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"
Since I'm building a dynamic site, I need to track the changes between pages, ie. Ajax calls, POST, GET stuff and similar stuff.
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.
So, my questions is: is there a way to make Google Chrome JavaScript console persistent? (And if yes, how?)
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".
Update 2: the latest versions of Chrome (33+) have this option by right-clicking in the console.
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"
Share Improve this question edited Nov 3, 2017 at 2:58 Peter Dolan 1,4232 gold badges13 silver badges28 bronze badges asked Mar 16, 2011 at 15:54 ZlatkoZlatko 19.6k14 gold badges74 silver badges129 bronze badges 2- its just "Preserve Log" now. I was being driven nuts and this post saved me a lot of time. thankyou lol – Hunter Commented Jun 8, 2019 at 1:21
- 1 And now for the console logs it's "Preserve logs upon navigation" – Mathieu2em Commented Nov 30, 2023 at 14:41
7 Answers
Reset to default 508If 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.
at Version 67.0.3396.87 (Official Build) (64-bit)
Chrome Version 124.0.6367.94 (Official Build) (arm64)
- Click the settings gear in top right corner of Developer Tools
- Navigate to
Preferences
- Scroll down to
Console
and togglePreserve log upon navigation
Chrome Version 73.0.3683.86 (Official Build) (64-bit):
- Click the ellipsis in top right of Developer Tools
- Navigate to
Settings > Preferences > Console
- Check
Preserve log upon navigation
Unfortunately, Chrome doesn't support that functionality yet, although there was talk in December 2010 about adding in the next major release...
This answer is no longer valid
Try this to enable console on popups
In Chrome v102
- I opened Chrome Dev Tools,
- I clicked on "gear" icon (Top right corner)
- Enable "Preserve log" checkbox
I had the "preserve logs" options enabled and still had the Console losing focus to the Sources tab. If that happens (apparently during debugging), it helps to disable "Focus sources panel when triggering a breakpoint" in "Settings > Preferences > Sources".
本文标签: How to make Google Chrome JavaScript console persistentStack Overflow
版权声明:本文标题:How to make Google Chrome JavaScript console persistent? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736720552a1949442.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论