简体   繁体   English

将 Safari javascript 控制台保存到文件?

[英]Save Safari javascript console to file?

Is it possible to save out the javascript console in Safari Web Inspector to a file?是否可以将 Safari Web Inspector 中的 javascript 控制台保存到文件中? I can't find any way to do it, and the only way to select all is to drag with the cursor (very difficult when I have a long continuous stream of log output).我找不到任何方法来做到这一点,选择全部的唯一方法是用光标拖动(当我有很长的连续日志输出流时,这非常困难)。

I figured something out:我想出了一些事情:

While holding down SHIFT, select the start of the part you want.按住 SHIFT 的同时,选择所需部分的开头。 Then release SHIFT and scroll down with the scrollbar.然后松开 SHIFT 并使用滚动条向下滚动。

Shift-click again on the end of the selection.再次按住 Shift 键单击选择的末尾。 Then you can copy/paste as needed.然后您可以根据需要复制/粘贴。

Click inside the console, s .在控制台内单击 s There is no step 3.没有第 3 步。

Note that this saves the output in plain text so there's no colorization, highlighted fields, etc.请注意,这会将输出保存为纯文本,因此没有着色、突出显示的字段等。

单击开发人员工具中控制台选项卡右侧的齿轮图标,然后取消选中“将行换行到编辑器宽度”后,我可以使用全选上下文菜单,选中此选项后,我只能复制第一行,未选中我可以全选并复制/粘贴成一个文本文件。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM