You can do it using remote debugging, here is official documentation. Basic process:
- Connect your android device
- Select your device: More tools > Inspect devices
*
from dev tools on pc/mac. - Authorize on your mobile.
- Happy debugging!!
*
This is now “Remote devices”.