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

Manu picture Manu · Aug 28, 2008 · Viewed 18.6k times · Source

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 session. Is there a way to do this without having to 'explore' my way into the script?

@Jason: This is a good point, but in my case I do not have easy access to the script. I am specifically talking about the client scripts which are invoked by the ASP.Net Validators that I would like to debug. I can access them during a debug session through entering the function calls, but I could not find a way to access them directly.

Answer

Jason Bunting picture Jason Bunting · Aug 28, 2008

Place debugger; in your external script file on the line you want to break on.