Article Preview
Buy Now
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.