Literally says in the article that GPT's main drawback is that it can't debug in the same way a human can.
Literally says in the article that GPT's main drawback is that it can't debug in the same way a human can.
When stuck I often paste code into ChatGPT and ask why it doesn't work, and it will often help me quickly identify the error and propose a fix.
One example are bugs caused by precondition violations, which ChatGPT can’t diagnose without also being given the code to all of the incoming call-sites, which means you end-up solving the problem yourself before you’ve even explained the issue to ChatGPT - so (to me, at least) my use of ChatGPT is more akin to rubber-duck-debugging[1] than anything else.
yeah, we run the random number generator again and hopefully this time less buggy code pops out