Re: Stray Puts

2012-02-25 Thread Peter M. Brigham, MD
I see I'm behind the curve again, should have read the rest of the thread before posting... -- Peter Peter M. Brigham pmb...@gmail.com http://home.comcast.net/~pmbrig On 2/25/11, Peter Brigham wrote: > On Feb 24, 2012, at 3:58 PM, J. Landman Gay wrote: > >> On 2/24/12 1:55 PM, Dar Scott wrot

Re: Stray Puts

2012-02-25 Thread Peter M. Brigham, MD
On Feb 24, 2012, at 3:58 PM, J. Landman Gay wrote: > 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

Re: Stray Puts

2012-02-24 Thread Pete
Reminds of the labelling on fireworks back in the UK "Light the blue touch paper and retire". Maybe that's a good one for the English like programming language disvussion. Pete On Fri, Feb 24, 2012 at 6:36 PM, Mark Wieder wrote: > Dar- > > Friday, February 24, 2012, 11:55:00 AM, you wrote: > >

Re: Stray Puts

2012-02-24 Thread Mark Wieder
Dar- Friday, February 24, 2012, 11:55:00 AM, you wrote: > (Oh, by the way, Mark, this old teletype programmer can never > bring himself to use CR for the LiveCode newline.) Yeah, I mentally translate CR and LF to CRLF all the time. And I can't handle "return" as a synonym. "put tText & return" m

Re: Stray Puts

2012-02-24 Thread Mark Wieder
Bob- Friday, February 24, 2012, 1:24:26 PM, you wrote: > Yup! It's open sourced (Thank you very much Jerry and Trevor!) > and Mark Weider just updated it recently. ...and (sigh) just updated again to 1.0.13 to further hack around the menubar problem. -- -Mark Wieder mwie...@ahsoftware.net

Re: Stray Puts

2012-02-24 Thread Michael Doub
As long as we are sharing debugging techniques, let me share what I am doing for IOS development. I created a launcher app that has a Global LogData buffer. The launcher app has a display window and 3 buttons. One button goes to a file in my dropbox that contains a list of URLs to the othe

Re: Stray Puts

2012-02-24 Thread Andre Garzia
On Fri, Feb 24, 2012 at 10:21 PM, Mark Wieder wrote: > Andre- > > Friday, February 24, 2012, 2:22:47 PM, you wrote: > > > Then you have added benefits... > > Also note that as of rev 2.9 "put" statments to the message box can be > redirected to a file. I forget the details off the top of my head,

Re: Stray Puts

2012-02-24 Thread Mark Wieder
Andre- Friday, February 24, 2012, 2:22:47 PM, you wrote: > Then you have added benefits... Also note that as of rev 2.9 "put" statments to the message box can be redirected to a file. I forget the details off the top of my head, but I think it's in the 2.9 release notes. -- -Mark Wieder mwie.

Re: Stray Puts

2012-02-24 Thread Andre Garzia
On Fri, Feb 24, 2012 at 8:41 PM, J. Landman Gay wrote: > On 2/24/12 3:39 PM, Dar Scott wrote: > >> That may have been I who mentioned log. >> > > I'm sure it must have been, you have lots of little tricks like that. I > just couldn't remember for sure. > > I've used Andre's method too, where you t

Re: Stray Puts

2012-02-24 Thread J. Landman Gay
On 2/24/12 3:39 PM, Dar Scott wrote: That may have been I who mentioned log. I'm sure it must have been, you have lots of little tricks like that. I just couldn't remember for sure. I've used Andre's method too, where you toggle a constant, but I didn't post it because, like you, I couldn't

Re: Stray Puts

2012-02-24 Thread Andre Garzia
On Fri, Feb 24, 2012 at 7:55 PM, Dar Scott wrote: > Is there any advantage of using a debug constant over commenting out the > body of the log? no advantage at all... actually, the commented version will run faster because it does not execute the if statement to check for constant value. The th

Re: Stray Puts

2012-02-24 Thread Dar Scott
Is there any advantage of using a debug constant over commenting out the body of the log? And, to add to the confusion of output possibilities, if I want to minimize the time impact or have other constraints, I log to a variable and then do something with the variable. Dar On Feb 24, 2012,

Re: Stray Puts

2012-02-24 Thread Andre Garzia
Jacque, I use something like constant kDebug = true on log pText if kDebug is true then put pText end if end log The good thing is that if I want to change from debug to release, I just change the kDebug constant value and the puts are gone. Cheers andre On Fri, Feb 24, 2012 at 6:58

Re: Stray Puts

2012-02-24 Thread Dar Scott
That may have been I who mentioned log. Don't forget the newline or tab in the log handler. The method also allows adding timestamps or delta seconds. Though I said "log", I actually tend to use the word log for more permanent logging. The three letters can't be beat for shortness, though.

Re: Stray Puts

2012-02-24 Thread Bob Sneidar
Yup! It's open sourced (Thank you very much Jerry and Trevor!) and Mark Weider just updated it recently. Bob On Feb 24, 2012, at 11:55 AM, Dar Scott wrote: > Is GLX2 still available? ___ use-livecode mailing list use-livecode@lists.runrev.com Plea

Re: Stray Puts

2012-02-24 Thread Bob Sneidar
Um... erm... yes well harumph why I DID know that. Bob On Feb 24, 2012, at 11:27 AM, Mark Wieder wrote: > And... er... you *are* aware that glx2 already has this in the "Go" menu, > right? > > -- > Mark Wieder ___ use-livecode mailing list use-li

RE: Stray Puts

2012-02-24 Thread Ralph DiMola
: 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

Re: Stray Puts

2012-02-24 Thread J. Landman Gay
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 i

Re: Stray Puts

2012-02-24 Thread Andre Garzia
On Fri, Feb 24, 2012 at 5:55 PM, Dar Scott wrote: > > Is GLX2 still available? https://bitbucket.org/mwieder/glx2/ Courtesy of Jerry and Mark =) -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. _

Re: Stray Puts

2012-02-24 Thread stephen barncard
I couldn't figure that one out for a Remo plugin I asked Jerry and he never responded. Thanks Bob! sqb On 24 February 2012 11:27, Mark Wieder wrote: > Bob Sneidar writes: > > > > > Anyone ever scripted a put to put something in the message box, and then > forgot it was there and had a > >

Re: Stray Puts

2012-02-24 Thread Dar Scott
Good idea, Mark. But... Then you have to put 'put empty' at the top of the section tested. Easy to search for, though. Or clear the message box by hand. It would be nice to have a clear button on the message box. And a scroll bar. That way to you can accumulate several runs. You can put

Re: Stray Puts

2012-02-24 Thread Mark Wieder
Bob Sneidar writes: > > Anyone ever scripted a put to put something in the message box, and then forgot it was there and had a > helluvatime finding it again? Nice, but no, a while back I stopped putting "put" statements in and replaced them with put xyzzy & cr after msg that way I just have

Re: Stray Puts

2012-02-24 Thread John Craig
In a word - YES. I'll give this a try - thanks ;) Sent from my iPhone On 24 Feb 2012, at 18:49, Bob Sneidar wrote: > Anyone ever scripted a put to put something in the message box, and then > forgot it was there and had a helluvatime finding it again? I give you: > > function findPut theScri

Re: Stray Puts

2012-02-24 Thread Marty Knapp
I've gotten in the habit of doing this: --TEST: put blah blah blah Then I can just do a search for "--TEST" and find the "put" and delete it. Not very high-tech, but it works for me. Marty K Anyone ever scripted a put to put something in the message box, and then forgot it was there and had

Re: Stray Puts

2012-02-24 Thread Dar Scott
Cool! What about 'put something after message'? I sometimes make a long comment like '-- - !' after such lines. Sometimes, I make a command to log values that can be changed to output to the message box, stdout, the console, a file or a field and then c

Re: Stray Puts

2012-02-24 Thread Andre Garzia
Bob, I think that Chipp had an altPlugin that would look everywhere on a stack and find those puts... =) On Fri, Feb 24, 2012 at 4:49 PM, Bob Sneidar wrote: > Anyone ever scripted a put to put something in the message box, and then > forgot it was there and had a helluvatime finding it again?