How can I set breakpoints in an external JS script in Firebug

前端 未结 5 1141

I can easily set breakpoints in embedded JS functions, but I don\'t see any way of accessing external JS scripts via Firebug unless I happen to enter them during a debug ses

5条回答
  •  我在风中等你
    2020-12-14 08:03

    To view and access external JavaScript files (*.js) from within Firebug:

    1. Click on the 'Script' tab.
    2. Click on the 'all' drop down in the upper left hand corner above the script code content window.
    3. Select 'Show Static Scripts'.
    4. Click on the dropdown button just to the right of what now says 'static' (By default, it should show the name of your current web page). You should now see a list of files associated with the current web page including any external JS files.
    5. Select the JavaScript file you are interested in and it's code will display in the content window. From there, you should be able to set breakpoints as normal.

提交回复
热议问题