Google has previously tried to add local AI models to Chrome to perform certain operations. Now Google has added AI functions to the F12 developer tools, and developers can use this function to quickly debug web pages.
The principle is roughly as follows:
When the F12 developer tool is opened and the AI function is enabled, developers can use AI to read the source code. After AI completes the source code analysis, it will give corresponding answers based on the developer's questions.
Of course, developers can also directly use AI to ask questions during the development or debugging process and obtain answers, solutions and other information without leaving the current window.
Here's how to enable it:
Open any web page and press F12 to launch the developer tools, then click the gear button in the upper right corner to enter settings, go to: AIInnovations, and turn on ConsoleInsights and AIAssistance.
After opening, select any code and click AskAI to open the window, and then ask questions here. It supports multiple languages such as English and Chinese. Developers can ask the AI to use which language to answer during actual use.
During actual operation, AI will automatically read the source code, and developers can also select specific codes for AskAI. AI will give corresponding answers based on the developer's questions and analysis of the contextual code.