It seems to be opinion that question quality is lowering on SO. Personally it seems the same to me. With that comes a raft of questions asked by people looking for a copy-paste solution to the exact question they have - to put it simply, they want personal debugging.
However, many of these questions can be improved. Instead of telling John Bloggs that this is his solution, I could instead suggest that he instead use a different framework which could deal with his problem more easily. This mayrequire additional setup, but along the way Mr. Bloggs will acquire some new programming knowledge.
The problem with changing the OP's question context like this is that it often generates downvotes and annoyed comments from high-rep users wondering why you did it.
So the question is: is it better to debug and send John Bloggs on his way, or to actually teach him something he could go on to use? Is there a way of doing both? How should questions like this be answered?