To debug the MIDlet:
Right-click on the project name in the Eclipse Package Explorer window and select Debug As > Debug....
In the Debug window that appears, enter the project name under Project and browse to the main class under Main class.
Click the Nokia SDK Plug-in tab and select the SDK to use.
Click Debug.
Eclipse runs the MIDlet on the SDK and displays a debug view.