将内容脚本标记为库代码Mark content scripts as Library code

使用 "源" 工具逐步执行 代码时,有时会对无法识别的代码暂停。When you use the Sources tool to step through code, sometimes you pause on code that you don't recognize. 您可能暂停了已安装的 Microsoft Edge 扩展之一的代码。You probably paused on code for one of the Microsoft Edge Extensions that you installed. 若要不在扩展代码上暂停,请完成以下操作。To not pause on extension code, complete the following actions.

  1. 在 DevTools 中,在右上角选择齿轮图标" (设置 ") 。In DevTools, in the upper right, choose the gear icon (Settings). 此时将出现设置页面。The Settings page appears.

  2. 在"设置"下,选择"忽略列表"。Below Settings, choose Ignore List. 将显示 "设置"的 "框架库 代码" 部分。The Framework Library Code section of Settings appears.

  3. 打开" 将内容脚本标记为库代码" 复选框。Turn on the Mark content scripts as Library code checkbox.

    启用将内容脚本标记为库代码复选框

联系 Microsoft Edge DevTools 团队Getting in touch with the Microsoft Edge DevTools team

使用以下选项讨论帖子中的新功能和更改,或与 DevTools 相关的任何其他内容。Use the following options to discuss the new features and changes in the post, or anything else related to DevTools.

  • 使用“发送反馈”图标发送反馈,或在 DevTools 中选择Alt+Shift+I \ (Windows、Linux) 或 Option+Shift+I \ (macOS)。Send your feedback using the Send Feedback icon or select Alt+Shift+I (Windows, Linux) or Option+Shift+I (macOS) in DevTools.
  • 发推 @EdgeDevToolsTweet at @EdgeDevTools.
  • 我们想要的 Web 提交建议。Submit a suggestion to The Web We Want.
  • 若要提交有关本文的错误,请使用以下“反馈” 部分。To file bugs about this article, use the following Feedback section.

Microsoft Edge DevTools 中的“发送反馈”图标

备注

此页面的某些部分是根据 Google 创建和共享的作品所做的修改,并根据 Creative Commons Attribution 4.0 International License 中描述的条款使用。Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons Attribution 4.0 International License.
原始页面位于此处,由 Kayce Basques\(Chrome DevTools & Lighthouse 的技术作家\)撰写。The original page is found here and is authored by Kayce Basques (Technical Writer, Chrome DevTools & Lighthouse).

Creative Commons License
本作品根据 Creative Commons Attribution 4.0 International License 获得许可。This work is licensed under a Creative Commons Attribution 4.0 International License.