Page 2 of 2
Re: Want to stop scripts running when I am debugging
Posted: Fri Jan 17, 2020 6:54 pm
by mwieder
It's not a "suggestion"... it's in the dictionary.

Re: Want to stop scripts running when I am debugging
Posted: Fri Jan 17, 2020 8:06 pm
by FourthWorld
mwieder wrote: Fri Jan 17, 2020 6:54 pm
It's not a "suggestion"... it's in the dictionary.
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.
Re: Want to stop scripts running when I am debugging
Posted: Fri Jan 17, 2020 10:17 pm
by mwieder
Indeed.
Look at the openStack or preOpenStack entry in the dictionary.
Sent to the destination card right after you open a stack.
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.
Re: Want to stop scripts running when I am debugging
Posted: Sat Jan 18, 2020 10:21 am
by kaveh1000
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.
