Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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.