Having my actionscript code split across different files for each class is great but it does make it harder to find where rogue trace() statements are coming from.
I made this handy Perl tool to scan through all the .as files in a directory looking for these trace statements. It has three modes:
Find - print a report giving the file and line number of all trace statements
Comment - comment out all of the trace statements in the directory
Remove - remove trace statement lines from the file
It will ignore any previously commented out trace statements. You can download the code from here.
Wednesday, April 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment