简体   繁体   English

使用chrome调试器调试图标

[英]debugging icons using chrome debugger

Say i have an icon in a webpage and i would like to figure out what happens when i click that, how do i debug that with chrome debugger? 假设我在网页中有一个图标,我想弄清楚单击该图标时会发生什么,我该如何使用chrome调试器进行调试? Assuming that i have the non-minified code for the webpage. 假设我有该网页的非缩小代码。

i tried to do inspect element and attaching to event handlers which doesn help much. 我试图做检查元素并附加到事件处理程序没有太大帮助。

<span id="__icon84" data-ui="__icon84" data-ui-icon-content="" class="UiIcon UiIconMirrorInRTL" style="font-family:'icons'"></span>

all i get is that the icon used is __icon84. 我所得到的只是所使用的图标是__icon84。

PS: i am new to JS. PS:我是JS新手。

Use the Event Listener Breakpoints sidebar pane in the Sources panel. 使用“ Sources面板中的“ Event Listener Breakpoints侧栏窗格。 Expand "Mouse" and check the "click" box. 展开“鼠标”,然后选中“单击”框。 Then the debugger should break whenever you enter a "click" event handler. 然后,只要您输入“ click”事件处理程序,调试器就会中断。

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

相关问题 在 Chrome 调试器中访问 object 个变量(VueJS 调试) - Accessing object variables in Chrome debugger (VueJS debugging) 允许使用Debugger for Chrome扩展 - Allow extensions using Debugger for Chrome 如何在调试 javascript 时禁用 Chrome 中的 [VM]XXX 调试器 - How to disable [VM]XXX debugger in Chrome while debugging javascript VSCode:如何使用 Chromium 调试本地文件(扩展名:Debugger for Chrome) - VSCode: How to use Chromium for debugging on local files (extension: Debugger for Chrome ) 使用Chrome javascript调试程序跟踪事件 - Track events using Chrome javascript debugger 无需使用关键字调试器即可在VS2010中进行Java脚本调试 - Javascript debugging in VS2010 without using the keyword debugger 尝试使用适用于Eclipse的chrome调试器调试NodeJ时,“无法获得调试选项卡” - 'Failed to get tabs for debugging' when trying to debug NodeJs with chrome debugger for Eclipse 在 Android 中调试时出现“未捕获的 ReferenceError: app is not defined”,但在 Chrome Debugger 下没有 - I get a "Uncaught ReferenceError: app is not defined" when debugging within Android, but not under the Chrome Debugger Javascript使用谷歌浏览器逐行调试 - Javascript Debugging line by line using Google Chrome 在生产环境中使用Chrome调试精简的JavaScript - Debugging Minified JavaScript Using Chrome on Production Environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM