Show TOC

Debugging the Mobile ApplicationLocate this document in the navigation structure

Use

After deploying and running your application on the Mobile Client for Handhelds, you should test it and debug it locally. You may want to set breakpoints in the Java code to execute it step by step.

By default, the debug configuration Start Mobile Project is created when the application is run for the first time. This configuration starts the default installation of the Mobile Client for Handhelds. You can copy this configuration or customize it using Eclipse.

More information: Debugging Applications

Note

Debugging a mobile application is possible only on a laptop emulator and not on a real PDA.

Prerequisites
Procedure
  1. Set the desired breakpoints in the code.

  2. On the toolbar, choose the Start of the navigation path Debug  Next navigation step Open Debug Dialog End of the navigation path.

  3. In the Debug dialog, expand the SAP Application node and select the required debug configuration.

    If you do not have a project debug configuration:

    1. Choose New launch configuration icon.

    2. Enter a name for the debug configuration.

    3. Select the project you want to debug.

    4. Select further debug parameters as necessary.

  4. Choose Debug .

Note

The Mobile Application has to be run at least once to have a default debug configuration.