Debug a project accessed from a remote device.This device should be connected to your local machine via usb.
To be able to access your local project from a remote device, you might serve it on the 0.0.0.0 host:
npm start -- --host 0.0.0.0
- Activate the developer menu by going into your phone infos and touch 7 times the build number. Then go into your system parameters and activate the developer menu.
- In the developer menu (under system parameters), activate usb debugging.
- Navigate to your app, for example http://192.168.X.X:4200, and in your browser parameters check "activate usb debugging".
- Open this same browser on your local machine, go to about:debugging (firefox) or chrome//inspect#devices (chrome). Activate the usb debugging.