简体   繁体   English

保存firefox开发人员工具javascript命令历史记录

[英]Save firefox developer tools javascript command history

I use Developer Tools Console to run JavaScript commands. 我使用Developer Tools Console来运行JavaScript命令。 It is currently showing history of about 40-50 executed commands accessible using Up Arrow key . 它目前显示使用Up Arrow key可访问的大约40-50个已执行命令的历史记录。

In the history it is showing repeated commands multiple times and the earlier commands I executed 4-5 days ago have vanished. 在历史中,它多次显示重复的命令,而我在4-5天前执行的早期命令已经消失。

Any Idea how to recover/save this history OR expand history to save unlimited commands (like in normal console)? 任何想法如何恢复/保存此历史记录或扩展历史记录以保存无限命令(如在普通控制台中)?

Firefox开发者工具

There is no way (as of Firefox 55.0.1) to specify an actually unlimited number of history items to keep. 没有办法(从Firefox 55.0.1开始)指定实际上无限数量的历史项目。 However, you can specify a larger number, up to 2147483647. To do so, go to about:config . 但是,您可以指定一个更大的数字,最多2147483647.要执行此操作,请转到about:config Then, change the preference devtools.webconsole.inputHistoryCount to the integer value which you desire. 然后,将首选项devtools.webconsole.inputHistoryCount更改为您需要的整数值。 The default is 50. 默认值为50。

You can verify that there's no way to specify an unlimited size from the source code . 您可以验证无法从源代码中指定无限大小。

Any Idea how to recover/save this history 任何想法如何恢复/保存此历史记录

There is no way to recover older, forgotten history (see source code linked above). 无法恢复旧的,被遗忘的历史记录(请参阅上面链接的源代码)。 It is forgotten. 它被遗忘了。

The only way I have found to save such code (beyond what is stored in the history) is to copy and paste it into some other location. 我发现保存此类代码的唯一方法(超出历史记录中存储的内容)是将其复制并粘贴到其他位置。 You could make a legacy add-on which made saving this history easier, but not a WebExtension. 您可以创建一个遗留附加组件,这样可以更轻松地保存此历史记录,但不能保存WebExtension。 In a brief search, I did not find an already existing add-on to do so. 在简短的搜索中,我没有找到已经存在的附加组件。

You can find more general information at: 您可以在以下位置找到更多一般信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Firefox开发人员工具检查JavaScript - How to inspect javascript using Firefox developer tools JavaScript使Firefox开发人员工具中的Block-Scope调试视图 - JavaScript let Block-Scope in Firefox Developer Tools Debug View JavaScript转义字符串在Firefox开发人员工具上不起作用 - JavaScript Escaping Strings don’t work on Firefox Developer Tools Firefox 开发者工具:JavaScript 文件显示为 HTML - Firefox developer tools: JavaScript files show up as HTML 在 Firefox 开发者工具(如 Chrome)中查看 JavaScript 堆栈跟踪出错 - Seeing JavaScript stacktrace on Error in Firefox Developer Tools (like in Chrome) 在 Chrome 开发者工具中保存 Javascript 或替换 Javascript 文件 - Save Javascript or Replace Javascript File in Chrome Developer Tools Firefox开发人员工具中的XHR断点 - XHR Breakpoints in Firefox developer tools Firefox开发人员工具的多个屏幕截图 - Multiple screenshot with Firefox Developer Tools 如何获取要在Firefox开发人员工具中调试的javascript文件的名称 - How to get the name of the javascript file you are debugging in Firefox's developer tools 如何调试Firefox开发人员工具随附的用Scratchpad编写的JavaScript? - How do I debug JavaScript written in Scratchpad that comes with Firefox Developer Tools?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM