Open the MIDlet class from the Package Explorer window and insert breakpoints wherever required.
Figure: Package explorer window
Note:
If the configuration is not created, create the configuration by performing the steps explained in Running the MIDletFigure: Debug configurations dialogue box
Figure: Debug in progress on Emulator
Figure: Debug on Emulator
Note:
Ctrl + K is the hot key used to kill the MIDlet as shown in the figure below.Figure: MIDlet exited properly
Note:
To improve the performance of the debugger, select Windows > Preferences. In Preferences, select Java > Debug. Uncheck all the options under Suspend Execution and Hot Code Replace. Enter a higher value for Debugger timeout based on your machine performance and Emulator performance.Figure: Enter the Preferences