Debugging Your Project

Top  Previous  Next

One of the most common operations you will perform during your development process is debugging. In essence, this involves controlled execution of your project. While debugging you can step through your program, set breakpoints, watch and change the state of various variables, see how control and decisions statements are executed, etc.

One of the aspects of TIDE is that it employs a technique called cross-debugging. Simply put, this means your code runs on a different machine than the one on which you wrote it, and you can debug it from the computer on which you wrote the program.

Thus, code is not debugged using some PC emulator or anything of this sort. It is truly uploaded and run on your target -- just like it would run in real life.

As covered above, the first thing you would have to do to begin debugging a debug binary would be to run it, using F5. Once you press F5 (or Debug > Run), your project will be built (if necessary), uploaded (if necessary) and started.

Once execution has started, there are several ways in which you may control and inspect it. These are listed below.