Debugging on real devices
Added a hint about how to enable debugging on real devices.
This commit is contained in:
parent
1dba7e0a5a
commit
308b88f417
|
@ -16,6 +16,10 @@ To debug the javascript code of your react app do the following:
|
|||
4. Press ```Command + Option + I``` to open the Chrome Developer tools, or open it via ```View``` -> ```Developer``` -> ```Developer Tools```.
|
||||
5. You should now be able to debug as you normally would.
|
||||
|
||||
> Hint
|
||||
>
|
||||
> To debug on a real device: Open the file ```RCTWebSocketExecutor.m``` and change ```localhost``` to the IP address of your computer. Shake the device to open the development menu with the option to start debugging.
|
||||
|
||||
### Optional
|
||||
Install the [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en) extension for Google Chrome. This will allow you to navigate the view hierarchy if you select the ```React``` tab when the developer tools are open.
|
||||
|
||||
|
|
Loading…
Reference in New Issue