Merge pull request #735 from nivoc/patch-2

Debugging on real devices
This commit is contained in:
Christopher Chedeau 2015-04-07 16:15:30 -07:00
commit b1d3e442c8
1 changed files with 4 additions and 0 deletions

View File

@ -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.