There is only one index.html page in my entire system, and the rest of the pages are requested through ajax. Each page fragment has a referenced script file, and the script path is written relative to index.html. path. But now I have a sub-fragment of js that may have a problem. I want to find the js break point for debugging. How should I do it?
大家讲道理2017-05-19 10:41:40
Take Chrome as an example:
Open Chrome and enter the local path of index.html
Press "f12" to open the console
Click "Sources" and find the corresponding .js file in the file path on the left
Click on the line mark of the break point to display the blue mark
Refresh the page and trigger the event