Thursday, May 26, 2011

The Debugging Process

After you have run your app on the emulator, you will undoubtedly discover bugs in the program. Thus the debugging stage begins. Debugging is the process of going through the program and fixing all the tiny errors in the "code" so that the programming will perform as expected. It is basically the same process using Google's App Inventor for Android, except you aren't dealing directly with the app's code. Debugging a program can take an enormous amount of time, even for experienced programmers. The issue is that each time you "fix" a bug other bugs can be created/revealed. This makes a process that could take a few hours to complete turn into a several day long battle.
Using the App Inventor for Android, the debugging process takes longer than it might using codes like C++ because the only way to discover errors is through testing it on the emulator or an Android device. It is also not always as easy to recognize which part of the program has errors. Usually, you can only identify one error at a time and even when the bug is identified then you have to figure out how to fix it using the Block Builder tools. App Inventor for Android is a lot easier to understand and use of the user has at least some knowledge of basic programming languages like C++. For example, knowledge of Boolean is essential to debugging most apps. But the most important part of debugging a program is not giving up.

No comments:

Post a Comment