Page 1 of 1

How to Re-run a project in the IDE?

Posted: Thu May 21, 2015 12:59 pm
by rjenkinsgb
Hi,

is there an option in the IDE to fully re-start the project - ie. so it runs through it's initialisation and splash screen etc?

Most IDE debuggers have an obvious way of doing this, but I can't find it in Livecode, I'm having to quit or close/remove from memory and reload to restart things.

--- It may well be that I've looked past it every time and not realised what it was, but I don't think that's the case..

RJ.

Re: How to Re-run a project in the IDE?

Posted: Thu May 21, 2015 5:36 pm
by jacque
There's no automatic way to do it. If the initialization requires a whole series of startup messages coming from the engine then reopening it is probably the easiest way. I usually have a single handler that does all the initialization and I just call that from the message box. Alternately you could call each engine message serially from the message box.

Re: How to Re-run a project in the IDE?

Posted: Mon May 25, 2015 2:28 pm
by MaxV
I suggest this, on another stack:

########CODE#######
on purge mystack
set the destroyStack of myStack to true
set the long name of stack mystack into temp
put the last word of temp into tPath
close myStack
go to stack URL ("binfile:" & tPath)
end purge
#####END OF CODE#####