As a developer, you'll often need to debug your code, either while writing it or during deployment. Sometimes, debugging happens at a later stage when your code is already deployed to production and unforeseen issues are found.
With the SharePoint Framework, debugging primarily happens within your browser's developer tools.