logo       

Re: How do I debug actionscript in ming?: msg#00035

web.ming.general

Subject: Re: How do I debug actionscript in ming?


As an extension to Wolfgang's method, I like to make debugging output
conditional on the server url or port. This means you can use exactly
the same code in development and production.


DEBUG = (_url == testServer); //or similar

if(DEBUG){
createTextField('log');//etc
}

function mytrace(x){
if (DEBUG){
log += x + '\n';
log.scroll = log.maxscroll;
}
}


function mytrace(x)
{ log += x + '\n';
log.scroll = log.maxscroll;
}


douglas


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise