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

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

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

Post by Havanna » Tue Sep 09, 2014 5:19 pm

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?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Tue Sep 09, 2014 5:27 pm

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

Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

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

Post by Havanna » Tue Sep 09, 2014 5:40 pm

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.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

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

Post by Klaus » Tue Sep 09, 2014 5:53 pm

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

Havanna
Posts: 53
Joined: Wed May 14, 2014 3:00 pm

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

Post by Havanna » Tue Sep 09, 2014 6:36 pm

Hi Klaus,

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

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

Post by jacque » Wed Sep 10, 2014 4:30 pm

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".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

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

Post by dave.kilroy » Wed Sep 10, 2014 5:18 pm

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...
"...this is not the code you are looking for..."

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

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

Post by MaxV » Tue Sep 16, 2014 11:58 am

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
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply