Languages

Menu
Sites
Language
Web-inspector not working for remote device
Hi all, I am trying to create an app for a fit pro2 and I cannot get the web-inspector to work when i run in debug mode on a remote device. The web-inspector does not allow me to run any commands in the console and I can not debug. It does post logs to the console, but I need to be able to reload the app from the web-inspector console in order to view logs that the console did not receive in the beginning. I've tried everything I could find online. Note that the web-inspector for an emulator works perfectly. I cant use an emulate because I am using the accessory sdk and need to be able to connect to an android device.

Responses

4 Replies
André Reus

hi, you have to connect to same Wifi network for both Gear device and development machine. Put on debugging option of your gear and then you have connect it from sdb through sdb command...then you will find your device in Device Manager. 

Follow this https://developer.samsung.com/gear/develop/creating-your-first-app/web#run

See Running on a Target Device section 

Jacob Mouka

Hi Peter, did you ever manage to solve this? I have the same (or almost same) issue, eg I can debug on emulator, and I can connect to remote device (Galaxy watch), install the app, eg, but when I launch the debugger (Chrome dev tools) it's a blank page. The Tizen Studio shows the watch's logs, but I can't debug or run commands.

The link provided by Andre doesn't seem helpful, since I can connect to the device fine (sdb, device manager, eg), but cannot remotely debug the app.  

 

 

Jose Manuel Morales Diaz

Hi Jacob, did you find a solution?, i have the same issue but with a smart TV from 2015, i trying to debug and the console didnt work to run commands or show errors, im installed tizen 1.3 and the updated version with diferent tv extension and i have the same result.

/sites/default/files/users/user-57715/captura.png

thanks if you can give me any advice.

HyunJun Jung

Here is how I was able to get Chrome dev tools to work with remote debugging using a Galaxy Watch:

  1. Open the device manager and attach the Glaxy watch. Make sure the laptop and watch are on the same subnet. e.g 192.168.1.x and port 26101 is not blocked on your firewall
  2. Build and run the web project in debug mode to the device IP
  3. Wait for the debugger window to load up. This will be a blank chrome tab/window. You will want to record down the port number it gives you as you will need this port number when you configure the remote devices in the Chrome dev tools
  4. Open chrome://inspect in a new tab
  5. Check the box discover network targets
  6. Select the configure button
  7. add a new target discovery ip: This is the IP of the watch. e.g. 192.168.1.x:<port number from step 3> or like 192.168.1.25:33341. The port number seems to change on each start .
  8. Click done and you should see something like the below
  9. Select the index.html link to inspect