4

I run two desktop machines (m/kb using Input Director, etc). I would like to run Chrome's dev tools on my second desktop, yet run Chrome on my primary.

I know that Chrome offers remote dev tools for Android, but I am unaware (and unable to find) of any way to do this across PC's.

Is there a way to run Chrome dev tools remotely on PC?

Spot
  • 7,407
  • 9
  • 41
  • 55

1 Answers1

3

That is actually quite easy.

Step 1 :

Make sure to launch the Chrome instance hosting the page you want to inspect (in your case the primary host) with the following additional parameter :

 --remote-debugging-port=9222


Step 2 :

If the Chrome instance where you would like to have your Developer Tools front-end was on the same machine, you would then just have to visit the following url to get a list of the inspectable page :

http://localhost:9222

Though, as you want to run the front-end on a different computer, you should target your primary hostname or ip. But because remote debugging works only in a context of local instances (thanks Rob W for pointing this out) you have to, for example, make a tunnel between the port 9222 on your primary computer and another port local to the latter. See this question.

Community
  • 1
  • 1
Michael P. Bazos
  • 21,340
  • 5
  • 58
  • 60
  • `localhost` is usually different on every computer, even if they're on the same network. – Rob W Jan 07 '14 at 23:57
  • You're absolutely right. I've done my test with two Chrome instances on the same machine and messed up a little. Thanks for pointing this out. – Michael P. Bazos Jan 08 '14 at 00:01
  • Your updated answer does not work either, because remote debugging is only locally available. – Rob W Jan 08 '14 at 00:04
  • 1
    See http://stackoverflow.com/questions/6827310/chrome-remote-debugging-doesnt-work-with-ip – Rob W Jan 08 '14 at 00:10