Start the application on the connected device as described in Wireless Debugging Procedure. Attach the Java debugger (jdb) from the command line as follows:
jdb -connect com.sun.jdi.SocketAttach:port=51307
The above command assumes the host is 127.0.0.1 (localhost), and the debugging port is still set to the default of 51307. If you changed the device’s port number property, enter that value.