Moto G - Debugging for Android When I open the Android Device chooser it shows a phone. But, instead of the serial number and other details it shows a series of question marks - "????????".

Any suggestions on how I can use the phone for debugging?
The problem was with the selection mode. 

Apparently MTP doesn't work too well with Ubuntu. When I switched to PTP the USB debugging started working.