如何在devtools中调试时禁用Chrome扩展JS? [英] How to disable chrome extensions JS when debugging in devtools?

查看:153
本文介绍了如何在devtools中调试时禁用Chrome扩展JS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我添加鼠标事件断点时,devtools总是跳入扩展的JS。

When I add mouse event breakpoint, devtools always jump into extension's JS.

有没有什么办法可以直接指向我的鼠标事件代码?

Is there any way to point to my mouse event code directly?

推荐答案

我认为最简单的方法是打开隐身窗口 Ctrl-Shift-N )(或 Cmd-Shift-N mac)并在那里调试,因为那样就不会有加载的扩展(默认情况下)。

I think the simplest way is to open an incognito window (Ctrl-Shift-N) (or Cmd-Shift-N for mac) and debug in there, because then there will be no extensions loaded (by default).

我知道你这个问题的含义:在调试时,做一些简单的事情,比如暂停执行,你总会发现它分成了一个扩展的代码而不是当前的网页的代码。

I know what you mean by this question: when debugging, and doing something simple like pausing execution, you always find it breaks into one of the extension's codes instead of the current webpage's code.

这篇关于如何在devtools中调试时禁用Chrome扩展JS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆