


How to debug js files contained in asynchronously loaded pages_javascript skills
May 16, 2016 pm 04:32 PMRecently developing functionality in a new web project. The management interface of this project has a feature. The frame is fixed and will not be refreshed. Each time a new page is clicked, only one div is refreshed. There is no iframe inside the div, which leads to a problem. The browser cannot debug the js file contained in the asynchronously loaded page. To put it simply, the js files included in the asynchronous loading page cannot be seen in the debugging tool.
I found a solution online, which is to add a line of code at the top of the js file that needs to be debugged:
//@ sourceURL=msgprompt.js
Note that there must be a space between the @ symbol and sourceURL. Effect under Chrome:
It is also OK under FireFox. This method is not bad.

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Detailed explanation of C++ function debugging: How to debug problems in multi-threaded functions?

How to use LeakSanitizer to debug C++ memory leaks?

Shortcut to golang function debugging and analysis

How to conduct concurrency testing and debugging in Java concurrent programming?

PHP Debugging Errors: A Guide to Common Mistakes

What are the debugging techniques for recursive calls in Java functions?

Detailed explanation of C++ function debugging: How to debug problems in functions that contain exception handling?
