Copilot can provide you with help when you are debugging your code. For example, when an exception is thrown Copilot will form a good questions based on the right parts of the data Visual Studio has when your exception was thrown.
Simplified Code Refinement and Debugging with GitHub Copilot Chat - Visual Studio Blog
Simplified Code Refinement and Debugging with GitHub Copilot Chat Copilot Using the Interactive Code Assistant view, you can seamlessly refine your code with Copilot Chat, without ever needing to leave the comfort of your editor window, so your workflow is uninterrupted. No more going back and forth to the chat window! And Copilot Chat now helps you with even more debugging scenarios


