firefox - How to debug javascript? -
this question has answer here:
- how can debug javascript code? [closed] 20 answers
i have old javascript code around 2000-2002 (surprisingly) still works in ie, doesn't in firefox, chrome, opera etc. found out quirks, browsers things way, another. there code snippets on internet create browser plattform independent function it.
now problem is, locate problems. right now, there buttons in website, when click them, happens in ie, firefox nothing. there isn't errormsg. tried stepping through javascript firebug, @ point in code, when next debug step, script seems abort, without error message. doesn't continue next statement. pretty strange , have no idea causes or how fix it. :/
so how debug javascript error messages telling me problem is, example, function/variable i'm using isn't defined in firefox or when use wrong parameters.
thx & best regards marc
firefox doesn't popup error messages or put them in status bar (like ie). have open error console see errors.
firefox puts javascript errors in error console, html , css errors , warnings.
as might not work in code, there plenty of things ie specific , won't work in other browser. there big difference between ie in quirks mode , ie in standards compliant mode. put proper doctype in page it's rendered in standards compliant mode, make ie more other browsers, , ie-specific quirks removed. might cause old script stop working, in case know it's it's ie-specific feature causes problem.
Comments
Post a Comment