Error Fixer helps you add breakpoints or print statements to your code when you encounter a runtime error in python. It suggests breakpoints or print statements that you can easily view and add.
Requirements
python 3.9+
Usage
Open a Python file in VSCode.
Run your code
by pressing Ctrl + F5
by selecting "Run Python File in Terminal" from the Command Palette (Ctrl + Shift + P)
by clicking on the "Run Python File in Terminal" button in the status bar.
by typing a command into the terminal
If an error occurs, Error Fixer will automatically open a window with an option to add print statements or breakpoints.
Click on "Add Print Statements" to see suggestions of print statements to add.
You can edit the suggestions if needed.
Click "Accept All" to incorporate the suggested changes.
Alternatively, click on "Add Breakpoints".
A list of breakpoint lines is shown below in the same window. You can click on a line number to see the code there.
Once you've selected all the lines to add breakpoints to, click on "Accept All" to add breakpoints to these lines.
Troubleshooting
Nothing happens when I click on "Add Print Statements" or "Add Breakpoints"
Sometimes it can take several seconds for suggestions to appear.