简体   繁体   English

如何以编程方式在Chrome devtools的“来源”标签中读取文件?

[英]How to read files in Chrome devtools Sources tab programmatically?

I do this manually a lot so I want to automate the process. 我经常手动执行此操作,因此我想使该过程自动化。 Basically I always have to open up Chrome DevTools, go to Sources tab, then find the file I'm looking for and copy a particular value from it. 基本上,我总是必须打开Chrome DevTools,转到Sources选项卡,然后找到我要查找的文件并从中复制特定值。

Is there any way to do this using code? 有什么办法可以使用代码吗? I'm trying to retrieve a value from external sources loaded by the website. 我正在尝试从网站加载的外部资源中检索值。

在不知道您要检索哪种类型的值的情况下,我无法确定答案,但是摘要如何?

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

相关问题 Chrome DevTools:如何从“源”选项卡或“监视”窗格中将JSON对象复制为文本形式 - Chrome DevTools: How to copy a JSON object as text from the Sources tab or Watch pane Chrome devtools:无需切换到 Sources 选项卡即可进入调试器 - Chrome devtools: Drop into debugger without switching to Sources tab 在 Chrome Sources 选项卡中找不到 .js 文件? - Can't find .js files in Chrome Sources tab? 无法在chrome devtools中查看角度源 - Cant see angular sources in chrome devtools 在 Chrome DevTools 中同时查看元素和源 - View Elements and Sources at the same time in Chrome DevTools 如何在Google Chrome Devtools中的debugger:/// VM *文件中访问和搜索代码 - How to access and search code in debugger:///VM* files in Google Chrome Devtools 如何禁用谷歌浏览器DevTools中某些文件的缓存 - How to disable cache for some files in google chrome DevTools 括号在chrome devtools内存标签中的含义 - What the parentheses means in chrome devtools memory tab 从 Devtools 将 Chrome 选项卡置于前台 window - Bring Chrome tab to foreground from Devtools window JavaScript“使用严格”在 Chrome 片段/DevTools 源面板中不一致地工作 - JavaScript "use strict" inconsistently working in Chrome snippets / DevTools Sources panel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM