How to debug the js file loaded asynchronously by ajax in the browser.
The simplest, crudest and most convenient way is
to add a debugger before the line of code that needs to be debugged
Shaped like
function demo () {
// stop the
debugger here
// ...
}
This makes it easy to open the debugger at the appropriate location for debugging, whether asynchronous or synchronous.
https://www.mozilla.org/en-US/firefox/developer/
https://www.mozilla.org/en-US/firefox/developer/all/