I have installed browser sync with npm. On their website, they have mentioned that it also allows remote debugging. But they have not mentioned that how to do remote debugging. I have used below command to run mysite on browser-sync. browser-sync start --proxy localhost:8080/mysite
how can I remote debug that?
Though this was quite a tricky process in versions before Browser-sync 2.0, but with Browser-sync 2.0 you now have a brand new Web UI, which makes this process a whole lot easier.
Firstly you need to update Browser-sync to it's latest version
npm install -g browser-sync@latest
Then run any command like you would.
eg:
browser-sync start --proxy "myproject.dev" --files "css/*.css"
To open this Web UI open
Below are links to articles that talk about Remote Debuggging in Browser-Sync:http://localhost:3001
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With