Guest User

Untitled

a guest
Nov 23rd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. ### Install the tools:
  2.  
  3. ```
  4. brew install ios-webkit-debug-proxy
  5. ```
  6.  
  7. Run the simulator. And **choose an iOS 10 device**. The chrome remote debugging **doesn't work with iOS 11 yet**.
  8.  
  9. ### Enable the inspector
  10.  
  11. Your attached iOS devices must have ≥1 open browser tabs and the inspector enabled via: Settings > Safari > Advanced > Web Inspector = ON. This was already enabled for me when I went into the Safari settings to check.
  12.  
  13. ### Run The Proxy
  14.  
  15. ```
  16. ios_webkit_debug_proxy --debug -f chrome-devtools://devtools/bundled/inspector.html
  17. ```
  18.  
  19. ### Open A Tab In Chrome
  20.  
  21. Open a tab in chrome at the following link: **chrome-devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/1**
  22.  
  23. That will open a new empty tab on in chrome with a full screen devtools interface.
  24.  
  25. ### Inspect the page
  26.  
  27. You can inspect the page now. You will not be able to see highlighted elements from the devtools in the browser though. You will just need to deal with opening the DOM tree and finding the elements. Or use DOM queries in the JS console (`document.querySelectorAll`) and then right click on the results and click "Reveal In Elements Panel".
Add Comment
Please, Sign In to add comment