Want to stop scripts running when I am debugging
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Want to stop scripts running when I am debugging
It's not a "suggestion"... it's in the dictionary.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Want to stop scripts running when I am debugging
I meant no offense by crediting your earlier post with the solution.
I'm curious: which token is that under in the Dictionary? Mainstack? preOpenStack? Something else?
One of the challenges of good docs is figuring out where to put useful things so they can be more easily found.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Want to stop scripts running when I am debugging
Indeed.
Look at the openStack or preOpenStack entry in the dictionary.
Look at the openStack or preOpenStack entry in the dictionary.
You can, of course, put the openStack or preOpenStack handlers in the stack script, and they'll get executed if there's no handler in the card script, but then you run into the problem that Kaveh found, where you have to either check what the target stack is or else put corresponding openStack handlers in any substacks. Much cleaner to keep the handler in the card script where it belongs.Sent to the destination card right after you open a stack.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- Livecode Opensource Backer
- Posts: 508
- Joined: Sun Dec 18, 2011 7:23 pm
- Location: London
- Contact:
Re: Want to stop scripts running when I am debugging
Thank you Mark. Clear in hindsight. I think because of the name "OpenStack" I just assumed that is where it should go. Indeed Sent to the destination card right after you open a stack. could not be more clear!
And yes, I have had to put exactly a line to say exit if the stack is not the main stack.
And yes, I have had to put exactly a line to say exit if the stack is not the main stack.
Kaveh