Chrome Remote Debugging

@rnab
1 min readOct 10, 2017

--

How to remotely debug in Chrome Developer tools

  • Run the Chrome instance that you will be debugging remotely with the remote debugging command line switch: chrome.exe --remote-debugging-port=9222 --user-data-dir=remote-profile. It is essential that you use a different instance of Chrome for the remote session and that is why we run it with the --user-data-dir argument
  • Navigate to the pages you intend to debug
  • Now run a regular (client) Chrome instance and navigate to http://localhost:9222 there

You can setup an SSH tunnel in order to debug remotely.
On the source machine execute:

`ssh -L 0.0.0.0:9223:localhost:9222 localhost -N `

Then on the other machine point Chrome browser to http://source-machine-ip:9223

--

--

@rnab
@rnab

Written by @rnab

Typescript, Devops, Kubernetes, AWS, AI/ML, Algo Trading

No responses yet