Debugging in Cursor allows you to quickly find and fix issues in your code with the help of AI suggestions.
- Open the Cursor on your desktop and log in.
- Click on the '+' icon at the center top, or press Ctrl + L or Ctrl + I to open new agent.
- In the editor, paste the code snippet you want to debug.
- Make sure the "Debug" mode is on before you enter the command.
- And type a clear instruction like: “Debug this code and explain any errors or issues.”
- Press Enter or click Submit to have Cursor analyze the code.
- Review the AI suggestions and explanations.




