Feature suggestion: Debug analysis

Hi, this is quite exciting looking at the next method of development after years of the same process more or less.
Programmers waste most time, trying to figure out bugs, why not have debug mode so when an exception is thrown, the AI by itself will know what caused it and where to fix it. Maybe add a unit test as well.
If you add automatic fixes for compiler errors, and runtime unit tests errors, This becomes an extreme version of cursor, where the user just specifies the intent, verifies api and data structures and all the rest just appears, no slow downs, no bothering about the technical details.
I don’t know if people will like to lose control, but otoh, this is the essence of programming and staying in the flow of creation. (which is more or less the aim of cursor, as i understand)