Used the same technique in VB. Totally agree!! I add one option my logging routine. It opens up a file in the stack location named for the card that initiated the first logging request and it echoes the logging message with a time stamp. Very handy to see what happened and when after the fact.
Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -----Original Message----- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of J. Landman Gay Sent: Friday, February 24, 2012 3:59 PM To: How to use LiveCode Subject: Re: Stray Puts On 2/24/12 1:55 PM, Dar Scott wrote: > I suspect we are all doing this the wrong way. Maybe there are > debugging features or compiler optimizations that allow for better > ways to do this. I've started doing it the way someone else suggested. I use a handler: on log pMsg put pMsg end log Then in the scripts: LOG "Message about script performance." When I want to stop logging, I just comment out the one-line body of the handler. If I really want to remove it all, I search for "LOG " (with space.) I don't know of any native LiveCode way to do it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode