Skip to article frontmatterSkip to article content

🐞 4 - Debugging: What to do when things go wrong?

Introduction

You might find yourself spending a significant portion of your development time debugging an extension that is not building, or some functionality that is now broken. With the right tools and approach, debugging can be an experience that leaves you feeling accomplished rather than frustrated. In this section we will go over some common issues that you might encounter when working on extensions, and a few ways in which you can tackle them.

1. Understanding Error Messages

Types of Errors

Reading Stack Traces

2. Terminal

Terminal Logs

3. Browser Developer Tools

Console Tab

Network Tab

Sources Tab with Source Maps

Elements/Inspector Tab

4. Best Practices

Debugging Workflow

Prevention is better

5. Hands-on Exercise

Instructions

  1. Copy the file at: TBD

  2. Past the file into the file: TBD TBD...

Common Debugging Scenarios

Extension Not Loading

UI Not Updating

Backend Communication Issues

Additional Resources