Find and Fix Problems in Your Code

How AI Assistant can help you to understand errors in your code.

The Problem

Your code has errors! Maybe it's an exception, maybe the editor has underlined some code in red, or maybe it's just not working. You can use JetBrains AI Assistant to get help with errors in a number of different ways.

The Solution

When you get an exception in your code, you can click Explain with AI to get JetBrains AI Assistant to explain the exception to give us some guidelines on how you can better deal with it:

explain-with-ai.png

This works in any language, like this one in C#! Let’s run our code with the debugger, and now we can click Explain with AI:

explain-with-ai-rider.png

If there's a problem in your editor, you can also use the old favourite ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) then select AI Actions > Find Problems, choose your scope and away you go:

find-problems.png

You can use JetBrains AI Assistant for help with a specific piece of code too:

find-problems.png

In addition, if your tests are failing, you can always just ask JetBrains AI Assistant to help you out, and you’ll get a detailed explanation to help you to understand the error highlighting in your JetBrains editor:

find-problems.png

So don't sit there and struggle. Use JetBrains AI Assistant for help with figuring out the issue when things go wrong!


Related Resources

Introducing Mellum: JetBrains' New LLM Built for Developers
Introducing Mellum: JetBrains' New LLM Built for Developers
JetBrains launches Mellum, a proprietary large language model (LLM) specifically designed to assist software developers.
Prompt AI Directly in the Editor
Prompt AI Directly in the Editor
With PyCharm, you now have the support of AI Assistant at your fingertips. You can interact with it right where you do most of your work – in the editor.
Streamline Your Workflow in IntelliJ IDEA's Database Tools With AI Assistant
Streamline Your Workflow in IntelliJ IDEA's Database Tools With AI Assistant
Use Assistant’s capabilities within Database Tools for more efficient data querying and handling.