two days before the company pulled the front-end code modifications found in the developer tools sources options inside, I actually did not set out to debug the JS script, then read the script, is introduced in the dynamic page, perhaps because so don't show up, but if you can not rely on the breakpoint debugging, print log really want to put people dead, the efficiency is too low, the network search test, there are two ways to solve:

1, sourceURL=xxxxxxxxx.js //# increase in the script name inside, their name, file name can be used directly, as shown below:

then open the JS page included in the page, so you can see the developer tools The can, like ordinary JS normal break point and debugging

2, the second method is to use console.log ("let me debug! ") print the log, when you see the output in the browser console, click the back link, that is, jump into the dynamic script. The name is vmXXX,

summarized above is small to introduce the browser dynamic debugging JS script, I hope to help you, if you have any questions please give me a message, Xiao Bian will reply you timely. Thank you for your support for the home website of the script!

This paper fixed link: | Script Home | +Copy Link

Article reprint please specify:The way browsers debug dynamic JS scripts (Graphic) | Script Home

You may also be interested in these articles!