Add this line in your code and when you run the application hits this method, it will wait till you connect with a debugger.
android.os.Debug.waitForDebugger();
Which port you ask? run the “ddms” utility and see for yourself which port your application is waiting on.
you can also check the option in your development settings.
Comment by wicketthings — December 5, 2007 @ 1:19 am