The Eclipse plugin automatically attaches a debugger but you can configure other IDE’s to wait on a debugging port by doing the following
The Dalvik Debug Monitor Server (DDMS) tool , which acts as a port forwarding service between your IDE and the emulator.
- Set optional debugging configurations on your emulator, such as blocking application startup for an activity until a debugger is attached. Note that many of these debugging options can be used without DDMS, such as displaying CPU usage or screen refresh rate on the emulator.
- Configure your IDE to attach to port 8700 for debugging. We’ve included information higher up on how to set up Eclipse to debug your Android Application.