A few years ago I took a deep dive into exploring the usefulness of AI tools.
Wasted a bunch of time but eventually figured out what kind of stuff works and what does not.
And figured out how to quickly see the answers I was getting were or were not going to help me.
The whole "well, I got 50 lines of code and I then I spend hours debugging it".
No, simply no. If the tool can't fix it after one or two error messages and fixes, done. Abandon that line of problem solving, do it myself with research, maybe try some other approaches with the AI tools, but do obviously do something else productive rather than trying to debug code that will never work or that will give me the answers I was looking.
But even if I'm not going to use the code it gave (or even attempt to make it work), I can look at it, and say "Oh, I get the gist, I know what to research now so I can do it myself" (and the "do it myself" may or may not rely on any more assistance from AI tools).