TS 60 MobilityDebugging

Debugging with Mobility project should work in the same way how it works for other project however there are some restrictions that need to be considered

  1. not all JDWP commands are supported e.g. you cannot change value of a variable etc.
  2. debugging on some platforms isn't supported by the VM - e.g. CreMe VM 4.12
  3. debugging on real device has to be supported by the SDK. It works with Sony Ericsson now. Should work with Nokia soon.


Mobility Pack Test Specification for Debugging

Author: LukasHasik
Version: 1.0
Lastupdate: December.04.2007
Introduction: Test specification for debugging in Mobility Pack 6.0

Contents


Test suite: Debug Project

Purpose: Verify the functionality of the debugger of NetBeans with Mobility Projects.
Setup: Test the testcases with mobile project on following platforms:

  • WTK 2.5.2 bundled with NB
  • CDC Toolkit 1.0
  • Sony Ericsson UIQ with CDC Pack



  1. Debug the Project
    1. Setup: Have the mobile project open in IDE. Put breakpoint on a line of the source code.
    2. Invoke "Debug..." on project node
  • EXPECTED RESULT: The application run in debug mode. The emulator show up. The debugger connects to the emulator correctly. Application can be started. When break point is hit then the application stops.
  1. Step Over action
    1. Setup: Have the mobile project open in IDE. Put breakpoint on a line of the source code.
    2. Invoke "Debug..." on project node
    3. Let the debugger stop on the break point in the code. The line is with green background (instead of red).
    4. Press F8 or invoke "Run > Step Over" action

EXPECTED RESULT: The application continues on next line.

  1. Step Into action
    1. Setup: Have the mobile project open in IDE. Put breakpoint on a line of the source code.
    2. Invoke "Debug..." on project node
    3. Let the debugger stop on the break point in the code. The line is with green background (instead of red).
    4. Press F7 or invoke "Run > Step Into" action

EXPECTED RESULT: The application continues in evaluation of the line. If there is a method call the debugger jump into the method and shows it up in editor.

  1. Continue action
    1. Setup: Have the mobile project open in IDE. Put breakpoint on a line of the source code.
    2. Invoke "Debug..." on project node
    3. Let the debugger stop on the break point in the code. The line is with green background (instead of red).
    4. Press F5 or invoke "Run > Continue" action

EXPECTED RESULT: The application continues immediately. It stops on next break point


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo