From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Diagnosing incorrect runtime behavior - Visual Studio Tutorial
From the course: AI-Powered Development: GitHub Copilot in Visual Studio
Diagnosing incorrect runtime behavior
- [Instructor] Silent bugs are the worst. The program runs, no unhandled exceptions are triggered, but the output is wrong. That usually means there's a logic problem hiding somewhere in our code. Of course, the development world has a time-honored solution for this, write unit tests, and yes, they help, but even with good test coverage, there are times when we need more insight. There are several ways to investigate our logic bugs with Copilot. In this demo, I'll show how we can use Copilot Chat while editing the code to diagnose and fix incorrect runtime behavior. Then in the next video, we'll explore the new debug explain feature, which becomes available when we are actively debugging. So my projects, I have two classes that are giving me trouble. One is here in this RuntimeBehavior class, it's BuggyMath. That's this method here, FutureValue. And the other problem is in this RayPoint class. This is a class that…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Explain build error messages3m 33s
-
(Locked)
Debug mode in the Copilot chat window3m 6s
-
(Locked)
Explain runtime errors and exceptions4m 54s
-
(Locked)
Diagnosing incorrect runtime behavior3m 16s
-
(Locked)
Analysis: Why a variable has its value5m 30s
-
(Locked)
The integration with the Watch windows1m 29s
-
(Locked)
The sample Visualizer code1m 52s
-
(Locked)
Visualize data with LINQ and Copilot4m 51s
-
(Locked)
AI-powered breakpoints and tracepoints3m 28s
-
(Locked)
-
-