connectedpixel.com

actionscript, web development

Debugging

JavaScript Trace Utility

Submitted by joelmay on 15 August, 2005 - 8:52am.

I am incapable of writing any code without a trace utility. I need to see variables change over time, loop counters increment, etc. I haven't been able to find a JavaScript trace utility, so I wrote my own.

Actually, it is so simple, that maybe developers write their own when they need one. In any case, you can view it in operation here.

To get the code, either use the 'View Source' button in your browser or download this zip file.

To use it, you need to include trace.js in the html file being debugged.

XML feed