Leveraging other tools to debug
Dedicated tools other than SPFx or SharePoint can be used as well when it comes to debugging your components. Let’s explore some of them:
- React Developer Tools: This is a Chrome and Edge browser extension specifically designed to debug React interfaces. As most of your SPFx components will be probably developed using this framework, this is a good tool to think about when it comes to purely debugging the UI. With this, you can monitor the component rendering life cycle and review props and state values quite easily:
Figure 17.16 – React Developer Tools
- SP Editor: Another Google Chrome extension, but this time from a community open source initiative. Even though it can’t be categorized as a debug tool directly, this extension can be very handy to speed up your debug process, for instance, by providing predefined actions related to debugging operations (such as loading a debug SPFx manifest...