My takes, for whatever they're worth:
Why do you want to do this? You have conflated at least three problems here.
Seems fine as it is. Assuming it's accurate, it sounds like useful advice, pointing out to the asker that they've created a confusing, incoherent, or overbroad question by conflating different problem; this observation will hopefully prompt the asker to chisel the question down a bit to a specific problem.
It will be very hard to help you with such a trivial bug. It could come from any line in your code, and we have to guess.
Seems fine as it is. The second sentence is basically a more specific and polite version of our MCVE close reason; I can't make any sense of calling it unwelcoming.
How exactly is this going to solve my problem?!
Though it's hard to be 100% certain without context, the exclamation mark here seems to just make the tone aggressive for no reason. Without that, I figure this would be fine. Pointing out that a purported answer doesn't in fact address the problem seems like a pretty legit criticism to me, and I don't see any reason not to say it. If it's true, saying it gives the answerer a chance to reread the question, reflect on what they've written, realise they've been an idiot, and delete their answer. If it's false, it gives the answerer a chance to argue the point in the comments and/or clarify their answer. All of these outcomes are constructive, and all are nicer than a silent downvote.
You don’t understand how to use this site. Here nobody codes for you; read the docs and then show us.
This is obnoxious and non-constructive, and should never have been posted. Leaving aside my beef with comments like "nobody codes for you", which I've written up at https://meta.stackoverflow.com/a/372180/1709587 (the wording discussed there is slightly different, but I believe everything I say there applies), there's nothing constructive in the rest of the comment either.
"You don’t understand how to use this site" is a non-specific insult that could be safely dropped, and "read the docs and then show us" is effectively a refusal to answer the question combined with a demand that the OP go away and solve it themselves. Such a refusal is warranted if and only if the question is close-worthy, but the comment as written doesn't actually articulate anything whatsoever that's wrong with the question, which kills off any chance of it being useful. The whole comment is effectively equivalent in meaning and close in tone to "fuck you - solve your own problem", and deserves deletion.
There's no way to tweak this for tone, because the fundamental message being transmitted is just a combative insult with no attempt at all to help anybody or articulate any specific problems with the post. This comment just shouldn't exist.
What are you actually trying to achieve? Please learn how to use a debugger.
Pretty hard to tell without context. "What are you actually trying to achieve?" might be a useful question or might be an irritating irrelevance. "Please learn how to use a debugger" just about might be useful advice to somebody, but it feels to me more like a non-constructive insult. It presumes that the user doesn't know how to use a debugger, and, more importantly, like the previous comment, it seems to demand that the user solves their own problem. That's only a fair thing to do if the question doesn't belong here in the first place, but the comment doesn't advance any argument for why that's so, if it is at all.
So yeah, I'd err on the side of agreeing that there's something wrong with this one, too, although it's not clear-cut.