Debug in iOS

Connect Safari Web Inspector on your desktop to the WebView in the Field Service mobile app where your LWC is running.

Debugging in iOS currently only works with Big Sur or later, and requires using the Safari Technology Preview browser.

Note

  1. Launch Safari on your desktop.
  2. Select Safari | Preferences.
  3. Select Advanced.
  4. Enable Show Develop menu in menu bar. Close the Preferences panel.
  5. Select Develop | Simulator - device - version, where the Simulator is the one that you’ve opened with the Field Service app for testing your new Lightning web component.
A window appears that shows the Safari Web Inspector developer tools connected to your simulator. You can use these tools and standard web development techniques to refine and improve your component.
Safari Web Inspector connected to the Field Service mobile app on iOS, running our sample LWC

See Apple Web Development Tools for additional information about the Web Inspector and how to use it.