Debugging is the process of removing bugs from your code. This is not very easy, especially for the new programmer. Debugging tools are incredibly usefull to help find and remove bugs. To start a debug off you need to place a break point in. To add one -

This will turn the line red. A break point will stop your program running allowing you to -

To start debugging off click on the debug icon (shown above) or select run from the debug menu The program should stop at the break point and the screen will look simlar to the one below.

You can then use the following keys to step through code -

[F8] - Step over code (or do not follow method)

[F7] - Step into code (or follow method)

The local variables tab shows the values of instantiated variables while watches allows you to manually select a variable or expression to evaulate.

next summary >>

 

 
Install
Menu
Search