简体   繁体   中英

How to make javascript debugger enable in firefox

Say you have javascript code sample like below in asp.net page body onload event.

function OnloadHandler()
{
    ...
    debugger;
    ...
}

We know when run this in IE ,the debugger just like a break-point , and wait for us to debug . But when I run it in Firefox . The code debugger; didn't work. I had to manually to set a break-point with Firebug. Can anyone tell me how to make debugger enabled in Firefox? thanks.

Using Firebug the debugger; keyword should work whenever the execution reaches it:

http://getfirebug.com/wiki/index.php/Debugger;_keyword

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM