Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 20.4 ('Xojo Jigsaw')
Instant purchase and download via GumRoad!

COLUMN

Debugging Basics 3

Some tips and techniques

Issue: 20.4 (July/August 2022)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 11,488
Starting Page Number: 73
Article Number: 20406
Related Link(s): None

Excerpt of article text...

This is the third part of my series on debugging. Though I'm no expert on the topic, I've done my fair share of head-scratching and come up with many foolish and unusual bugs, so I suppose that makes me qualified to write about it.

In part one I wrote about types of bugs, and part two I showed how to use the Xojo debugger. This time I'll share some general debugging tips that you might find useful.

Debugging Tips

Think Like a Program

The best debugging tool is the one between your ears. So many times my thought process is muddled and that's the source of my errors. When I actually stop and try to emulate in my brain what the code is doing, my mistake is obvious.

Taking the time to think can feel annoying, like backpedaling, but it really is helpful, especially if the bug is inscrutable.

...End of Excerpt. Please purchase the magazine to read the full article.