Debugging and speeding up your code
We hope you went through the book easily. Now, when the video synthesizer is finished, we encourage you to imagine and implement your own project!
Tip
If you wish to make a project but have no idea what to do, explore projects at www.creativeapplications.net as a source of inspiration.
Now we'll give you some advice on debugging and optimizing your project's performance.
Debugging
The main rule for writing programs with fewer bugs is compiling and testing your project as often as possible.
If you detect incorrect behavior of the program, this probably means that some bug exists in the code. The main way to fix the bug is to locate it in the code. To achieve this, you can use the IDE's debugging tools, such as breakpoints and watch list.
Tip
You need to compile you project in the debug mode to be able to use the IDE's debugging tools.
Unfortunately, some errors in openFrameworks projects can be difficult to find if your project runs in the debug mode, because the...