From the course: AI-Driven Software Development with OpenAI’s Canvas

Unlock this course with a free trial

Join today to access over 24,200 courses taught by industry experts.

Debugging with AI

Debugging with AI

- The developer version of the toolbar in Canvas adds some features that can be really useful for coders, especially when you need help debugging and getting more suggestions on how you can improve your code. I'm going to start by adding the modified lightbox code and I'll say, "Use Canvas mode to look at this code." Now it's opening this up on the side view. And on the right, you can see some of the options. One popular option is to ask Canvas to find bugs in your code. But since my code is currently flawless, I'm going to prompt it to create some bugs for me. I'll say, "I need to showcase your ability to find bugs in code. Can you incorporate some common bugs into this code to showcase that feature?" And you can see that it added a number of bugs, including some comments about where the bugs are. You can also use the history to show changes right here, and see exactly where it's added something. Now let's go ahead and…

Contents