Page 1 of 1

IDE Debug Control: How can I run the whole Program from scra

Posted: Tue Sep 09, 2014 5:19 pm
by Havanna
I have a largish project in the IDE
Some computations are done on preopenstack,
some more in openstack
and then several things in different cards.

All of it works nicely, but i have not yet found a way to run the whole thing in the IDE from the start.
all the handlers are accessible separately, that's okay.
But sometimes when changes are made in preopenstack or openstack, I have to close remove the project from memory, and then reload it, to get a full run. That of course closes all editors.

Is there a direct way that I have overlooked?

Re: IDE Debug Control: How can I run the whole Program from

Posted: Tue Sep 09, 2014 5:27 pm
by Klaus
Hi Havanna,

not a direct way, but almost!

With your stack open, enter this in the MESSAGE BOX and hit ENTER:
send "preopenstack" to stack "your stack name here"
Resp.:
send "openstack" to stack "your stack name here"

You get the picture :D


Best

Klaus

Re: IDE Debug Control: How can I run the whole Program from

Posted: Tue Sep 09, 2014 5:40 pm
by Havanna
thx, Klaus!
That is a good start, though it runs just the respective handler.
What I was looking for is something like a full init, so the application runs thorugh all the phases, just like I freshly open it. Or like the standalone.
Sorry, seems difficult to describe.

Re: IDE Debug Control: How can I run the whole Program from

Posted: Tue Sep 09, 2014 5:53 pm
by Klaus
Hi Havanna,

yes, I know what you mean, but that is not directly possible.
This may be one of the few disadvantages of a compile-free programming environment :D


Best

Klaus

Re: IDE Debug Control: How can I run the whole Program from

Posted: Tue Sep 09, 2014 6:36 pm
by Havanna
Hi Klaus,

thx again.
I'm not complaining about not compiling anyway :lol:

Re: IDE Debug Control: How can I run the whole Program from

Posted: Wed Sep 10, 2014 4:30 pm
by jacque
Sometimes I write a test handler that executes all the commands in order:

Code: Select all

on test 
  preOpenStack
  preOpenCard
 - -  etc
emd test
Then from the message box just call "test".

Re: IDE Debug Control: How can I run the whole Program from

Posted: Wed Sep 10, 2014 5:18 pm
by dave.kilroy
For some projects I have a drop-down menu that is only accessible in the IDE via ctrl+click as well as a small 'testing' label which harvests responses from several handlers so I can see what is going on...

Re: IDE Debug Control: How can I run the whole Program from

Posted: Tue Sep 16, 2014 11:58 am
by MaxV
Probably you already know, but for debbugging there are several tools in the Livecode IDE:
  • breakpoints
  • conditional breakpoints
  • variable watch breakpoints
  • conditional variable watch breakpoints
  • entry messages
  • variable check during executing
  • variable altering during executing
  • show context of use of handlers