PreviousNext

Step through lines of code in an application

In the main window, on the Debug menu, perform any of the following commands:
Task
Steps

Step over a method call.

The BlackBerry® IDE debug tool moves to the next line of code. If the source line is a method call, the application runs the entire method without stepping through the individual method instructions.

Step through method instructions.

The BlackBerry IDE debug tool moves to the next line of code. If the source line is a method call, the application stops just before running the first statement of the method.

Step out of method instructions.

The BlackBerry IDE debug tool moves to the next line of code. If the source line is part of a method, the application runs the remaining lines of the method and returns control to the caller of the method.

For example, to step into function "f" in the following line of code f(g(x)), perform the following actions:

    1. Click Step Into to run the application into "g".
    2. Click Step Out to return the application to the line of code.
    3. Click Step Into again to run the application into function "f".

Related topic


   BlackBerry