Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Debugging Web App without USB [closed]

I'm currently using USB connection to debug my web application using chrome's inspect devices. During demonstration or presentation, I would not be connecting my mobile device to my PC client but I would want to see the console logs on my PC just in case there are any abnormal events happening. Is there anyway to do it via WIFI?

Or do I have to send my output data over to my web-service and to see it from there?

like image 330
Gene Avatar asked Dec 01 '15 06:12

Gene


People also ask

How do I debug without USB?

Android WIFI ADB is a plugin available in Android Studio that helps you to connect your system to devices over a Wi-Fi network. It allows you to quickly connect your Android device over Wi-Fi by pressing one button, to install, run, and debug your applications without a USB connection.

How do I inspect a remote device in Chrome?

Go to chrome://inspect#devices . Make sure that the Discover USB devices checkbox is enabled. Connect your Android device directly to your development machine using a USB cable. Your Android device may ask you to confirm that you trust this computer.


2 Answers

You can do it via wifi.

1) Connect your device to pc using adb. 2) Enable developer option. 3) Open terminal/console. 4) Run following command
1) adb tcpip 7777 2) adb connect 192.168.1.77:7777

Replace 192.168.1.77 with your android device ip.

5) Once it will successfully connected you can remove cable and perform your demonstration. you will get console logs via wifi.

like image 56
Shashi Ranjan Avatar answered Oct 10 '22 21:10

Shashi Ranjan


You can! Follow these steps:

  1. Connect device via USB and make sure debugging is working.

    (GO To the root directory of your sdk)

For my case it's > C:\Users\johnrao\AppData\Local\Android\sdk\platform-tools

Shift Right Click and open command here (Windows)

  1. adb connect "your device ip address"

That works for me!

like image 42
johnrao07 Avatar answered Oct 10 '22 22:10

johnrao07