Vote to Close --> Off-topic --> Minimum Complete Verifiable Example
Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example. (emphasis mine)
The example you posted, though common, sometimes includes an exact error message and the desired behavior. But it is often not "the shortest code necessary to reproduce it" because either code is missing (as in your example) or code could be omitted (as in many other examples).
As you know, closed questions are "temporarily put on hold". Emphasize that last part to the new users and a few will realize that they could do some more work and fix it, spending their hours productively, not spending your hours unproductively...
If you get tempted to answer one of these non-MCVE debugging questionsone of these non-MCVE debugging questions be aware that a good answer will have to cover a lot more territory to hit all the bad spots. It will take more time now than a MCVE would and it will help fewer people in the future than a MCVE would. You'll realize afterward that "too broad" might have applied to the original post as well. And, if you are unlucky, either the OP or some viewer in the peanut gallery with an incomplete understanding of all the issues will add their critiques, making it sometimes seem like wasted hours.