CHAPTER 7Diagnosing and Resolving Bugs

In this chapter, you will take a closer look at how Copilot can help you diagnose and resolve bugs. In these chapter examples, you will see a variety of circumstances that Copilot enables you to resolve coding issues without leaving your development flow.

  • Establishing the Example Project
  • Fixing Syntax Errors
  • Resolving Runtime Exceptions
  • Resolving Terminal Errors

Establishing the Example Project

If you would like to follow along with this coding example, you can download a copy of the starter project todo-api-ch07-starter in the Chapter 7 folder.

www.wiley.com/go/programminggithubcopilot

The application programming interface (API) project you will be using is a NestJS API. This example project will enable you to see common scenarios of application development bugs that might occur and how you can use Copilot to assist in fixing them.

Prerequisites

To follow along with this example, you will need to install the following prerequisites:

Get Programming with GitHub Copilot now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.