Microsoft Edge has introduced a new feature, Copilot in Edge, that allows users to understand and navigate through errors and warnings in DevTools Console. This feature, available from Microsoft Edge 120, is designed to help both new and experienced web developers troubleshoot and correct bugs in their code.
Navigate the Unexpected: Introducing Copilot in Edge and DevTools
Microsoft has recently announced a new experimental feature in DevTools, available from Microsoft Edge 120. This feature, Copilot in Edge, allows users to ask DevTools to explain any error, warning, or code snippet.
Understanding Errors and Warnings in DevTools
Web development often involves dealing with errors and warnings in the DevTools Console. While some errors are self-explanatory and aid in bug correction, others can be obscure or even intimidating.
“Access to fetch at ‘https://www.microsoft.com/’ from origin ‘https://microsoftedge.github.io’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”
Such errors can feel cryptic, particularly for those new to web development. However, they play a crucial role in learning, as they indicate where a problem lies and potentially how to fix it.
Common Solutions to Understanding Errors
Common strategies to understand these errors include searching for the error message online or asking a coworker for assistance. However, these methods don’t always yield satisfactory results.
Introducing Copilot in Edge
Given the right context, Copilot in Edge can reason about complex problems and find custom solutions. For those using Microsoft Edge for web development, Copilot in Edge is already available.
“Starting with Microsoft Edge version 120, you can now ask Copilot to explain console errors and warnings, as well as source code, right from where you need it in DevTools!”
Utilizing Copilot in Edge
With Copilot in Edge integrated into DevTools, users can ask Copilot to explain any error or warning displayed in the Console or any snippet of code selected in the Sources tool. This new feature promises to be a game-changer in the world of web development.
From the Windows Blog