Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying LiveCode Mobile Development Beginner's Guide (2nd Edition)
  • Table Of Contents Toc
LiveCode Mobile Development Beginner's Guide (2nd Edition)

LiveCode Mobile Development Beginner's Guide (2nd Edition)

By : Colin Holgate, Joel W Gerdeen
3 (1)
close
close
LiveCode Mobile Development Beginner's Guide (2nd Edition)

LiveCode Mobile Development Beginner's Guide (2nd Edition)

3 (1)
By: Colin Holgate, Joel W Gerdeen

Overview of this book

The ideal reader for this book would be someone who already knows LiveCode, is interested in creating mobile apps, and wants to save the many hours it took for me to track down all of the information on how to get started! Chapter 1, LiveCode Fundamentals, will help those of you who know programming but are not familiar with LiveCode. The knowledge you've acquired should be enough for you to benefit from the remainder of the book.
Table of Contents (10 chapters)
close
close
9
Index

Debugging

If you went ahead and tried out the calculator before we entered all the scripts it needed, you most likely will have seen the script debugging in action. Hopefully, you've managed to cope with what you saw, it can be overwhelming at first. This is what it would have looked like:

Debugging

Most of what you see here is the same that you'll see when you edit scripts, but if you do see the debug variation, you are actually in a paused state, which is a freeze frame of the program as it runs. In this example, the program stopped because line 46 is looking for a field named dis play. There isn't such a field, as it should be display.

The error message at the bottom of the panel makes it clear that the error has something to do with the field name and you can quickly spot the typo. Sometimes though, you may need to inspect the variables to make sure they contain the values you think they should, for example, the Variables tab will show a list of those values.

An unexpected problem is one time that you may see the debugger, but when developing a script, you are able to set breakpoints by clicking in the column just to the left of the line number you want to halt the program at.

Once the script is halted by a breakpoint, you can use the row of buttons at the top to step through the code. The content displayed as you hover the cursor above a button, is it's meaning. These buttons are:

  • Continue: This will set the script that runs again
  • Stop: This stops the script from running and switches to the editor, so that you can make changes
  • Show next statement: This will show an indicator to the left of the current line
  • Step into next statement: This is used for stepping into a different handler
  • Step over next statement: This is used to go onto the next statement in the current handler without stepping in a handler mentioned on the current line
  • Step out of current handler: This is used to skip the remaining lines in a handler that you had previously stepped into and to exit to the handler that called the current one

You will become familiar with the script editor and debugger as you go along, but that should get you started!

In this chapter, we covered just enough to make you familiar with the environment so that you can practice using some controls and to do a little script writing. There is quite a lot to LiveCode as a tool, so you may be interested to look into other topics or go into more depth than is covered here.

A good starting point would be LiveCode's own set of online tutorials, which are located at http://lessons.runrev.com/.

Type in the search box, words that describe your area of interest and you will see a list of articles on that topic.

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
LiveCode Mobile Development Beginner's Guide (2nd Edition)
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon