Debugging Errors

The Pieces Copilot in the Pieces for Sublime Text plugin offers AI-powered debugging to quickly identify and fix code issues in Sublime Text, speeding up troubleshooting and providing learning opportunities.


Using the Debugging Tool

Quickly identify and resolve issues in your code with the Fix A Bug option from Pieces Copilot.

To use the debugging tool:

1

Select a Portion of Code

Select a portion of problematic code and right-click to open the context menu.

2

Hover over Pieces and Ask Copilot

Hover over Pieces, then hover over Ask Copilot.

3

Fix the Bug in the Code

Lastly, select Fix A Bug from the menu.

The debugging function within the Pieces Copilot uses the code's context and semantics to find and rectify issues.

If you face a specific error during code compilation, paste the error code into the text input field at the bottom of Sublime for detailed help, and Pieces Copilot will analyze it using the active LLM, open a Copilot Chat with suggestions, regenerate the code, and offer to insert it at the cursor with new comments.

Why Debug with Pieces Copilot?

Debugging with Pieces Copilot streamlines error resolution by providing AI-driven insights in a seamless experience that integrates naturally into your Sublime Text workflow.

It saves time by eliminating the need to scour the web or sift through lengthy documentation, ensuring your workflow remains focused and distraction-free.

Moreover, every suggested fix comes with a clear explanation, helping you not only resolve issues but also enhance your coding skills along the way.

Updated on