I came across a problem where I need to share all my debugger breakpoints to my colleague to debug the issue at his end. So thought of implementing something like export the debugger points from one system and import at other system.
由于devtools不提供内置的导入/导出功能,因此还有另一种方法吗?
最佳答案
使用devtools-on-devtools:
Dock side
切换到一个分离的( float 的)窗口它将在新窗口中打开 devtools-on-devtools
UI方法:
在这个新窗口中的
Application
选项卡,展开Local Storage
,然后在左侧devtools://devtools
breakpoints
值并将其复制粘贴控制台方法(在值太长的情况下特别有用):
copy(localStorage.breakpoints)
,以将值复制到剪贴板localStorage.breakpoints=prompt()
(提示将出现在devtools主窗口中)。 导出所有内容的控制台方法:
copy(JSON.stringify(localStorage))
,以将值复制到剪贴板Object.assign(localStorage, JSON.parse(prompt()))
(提示将出现在devtools主窗口中)。 P.S.下次您可以通过按CtrlShiftD快速切换devtools的分离状态
关于google-chrome-devtools - 在计算机之间导入/导出Chrome devtools断点和设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58917681/