Debug Lightning Web Components in the Field Service Mobile App

The best way to develop and debug your Lightning web components is the same way you develop and debug anything built with HTML, CSS, and JavaScript: with the debugging tools built into your web browser.

The rest of this tutorial guides you through connecting your desktop browser’s developer tools to the WebView within the Field Service mobile app. From there, debugging an LWC running on a mobile device is like any other web app debugging session.

  • Install Local Development Server Plugin

    Whether you’re debugging your component for iOS or Android, you must first install the LWC Development Server for mobile.

  • Debug in iOS

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

  • Debug in Android

    Connect Chrome DevTools on your desktop to the WebView in the Field Service mobile app where your LWC is running.