About Me

My photo
Derek lives in Wall Street, Lee-Over-Sands, St Osyth. A mobile and event software/product designer by trade - and is keen to improve things for all the local residents - and has lived in this idyllic location since 2009.

Thursday, 10 February 2011

The joys of the trace command

Isn't the Flash trace command brilliant for finding problems in your applications... Unless you have too much content going into the trace window of course!

In which case it kills your app during testing as all the trace commands execute. A useful method to avoid this is an obvious one, but could be useful to some novicecoders - do a search and replace for the phrase "trace" and replace with "//trace" this then sorts out the bulk of it. Make sure you save your work first!

Another tip I've worked out recently while working on massive 5000 line programs is to put the comment "/here" wherever in the code segment that I'm working on. This makes it pretty easy to jump about tp the salient sections in a lot of code whole you test and tweak your program.
Published with Blogger-droid v1.6.7