Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Debug and DDMS

Is there way to debug and ddms enabled at the same time? For example: add breakpoint to sms receiver, send sms with ddms and stop at the breakpoint.

like image 669
Denis Zabozhanov Avatar asked May 20 '13 15:05

Denis Zabozhanov


1 Answers

You can't use the the DDMS to send an SMS and debug it as the only way to do it is to disable the ADB integration within android studio and it needs this to debug.

Instead use the terminal window within Android Studio to telnet into the emulator console with:

telnet localhost <port number>

and send an SMS using the command:

sms send <senderPhoneNumber> <textmessage>

more details can be found at http://developer.android.com/tools/devices/emulator.html

like image 177
Hillbilly128 Avatar answered Nov 18 '22 07:11

Hillbilly128