search

Home  >  Q&A  >  body text

javascript - How to locate which js is called by an action without interrupting point debugging?

It's easy to write breakpoints in your own code, and firebug will jump directly to the breakpoint.

But there is often an old problem. Looking at other people's code, a lot of js is loaded on it. Since js jquery is usually event-bound, js actions are not written directly in html tags. At this time:

1. When the mouse moves over an element and an action is generated, how to locate which function of which js file is executed by this action?

2. This leads to another question, how to debug js without breakpoints? When the mouse moves over an element, breakpoints are automatically broken

.

滿天的星座滿天的星座2715 days ago679

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-26 11:00:40

    1. Sources and Event listener Breakpoints of Chrome F12 can be monitored in real time;

    2. Enable Performance recording of Chrome F12, there are records in Event Log;

    reply
    0
  • 天蓬老师

    天蓬老师2017-06-26 11:00:40

    Answer yourself:
    In addition to firebug, what other useful javascript debugging tools are there under firefox?
    /q/10...

    reply
    0
  • Cancelreply