How do I find what Javascript is running on certain events?

后端 未结 4 1755
孤街浪徒
孤街浪徒 2020-12-23 21:25

I\'ll pick Chrome for this example, but I\'m open to a solution from any browser.

Use Case: I have an update button on my website that is used to update item quantit

4条回答
  •  旧时难觅i
    2020-12-23 21:30

    Download Firebug for Mozilla Firefox, open it, click on Net and refresh your website. Than, you can see which files are loaded on the page.

    If you want to check on errors and what goes wrong with an explanation, than click on console and refresh the page once again. You will see the errors and on which line it goes wrong.

    Note: in your console, you can say hold or stop, so that the js file stops loading. And you can edit the script by clicking on script in Firebug. Debugging is simple, as it says on their official page https://getfirebug.com/javascript

提交回复
热议问题