The Salesforce Lightning Inspector, a Google Chrome DevTools extension, is designed specifically for developers working with the Salesforce Lightning platform. This tool enables you to navigate the component tree, inspect component attributes, and profile component performance. The extension also helps you to understand the sequence of event firing and handling.
The extension helps you to:
Navigate the component tree in your app and inspect components and their associated DOM elements.
Identify performance bottlenecks by looking at a graph of component creation time.
Debug server interactions faster by monitoring and modifying responses.
Test the fault tolerance of your app by simulating error conditions or dropped action responses.
Track the sequence of event firing and handling for one or more actions.
Link to Salesforce Chrome Lightning Inspector
After installing Salesforce Lightning Inspector, the Chrome extension adds a Lightning tab to the DevTools menu.
Open the Chrome Developer Tools by clicking on the three dots at the top right corner of the screen and selecting 'More Tools' followed by 'Developer Tools'.
Use the following subtabs to inspect different aspects of your app.
Component Tree Tab
This tab shows the component markup including the tree of nested components.
Performance Tab
The Performance tab shows a flame graph of the creation time for your components. Look at longer and deeper portions of the graph for potential performance bottlenecks.
Transactions Tab
Some apps delivered by Salesforce include transaction markers that enable you to see fine-grained metrics for actions within those transactions. You can’t create your own transactions.
Event Log Tab
This tab shows all the events fired. The event graph helps you to understand the sequence of events and handlers for one or more actions.
Actions Tab
This tab shows the server-side actions executed. The list automatically refreshes when the page updates.
Storage Tab
This tab shows the client-side storage for Lightning applications. Actions marked as storable are stored in the actions store. Use this tab to analyze storage in the Salesforce mobile app and Lightning Experience.
Comments
Post a Comment