I've been reading the guidelines What topics can I ask about here? in order to understand what's on-topic and what's off-topic after having my question closed with the comment Not suitable for this site.
The question is about a specific programming problem which I'm sure many developers have to solve. It's also obvious that my code and configuration don't work the way they should. Maybe that's why some reviewers mistook it for a debugging question "Why does it not work?"
I don't see it as a debugging question, but more like "Why does it work the way it works?" I want to understand why that code with that configuration leads to the behaviour it has. I found similar questions about the same behaviour in very different environments so I thought the explanation of the problem might be the same. Links to the related questions are included in the question.
Now there's a notice on the question about the need for debugging details, desired behaviour, shortest code to reproduce the problem, all of which I would understand if it was a debugging question. However, if anyone needs more details about debugging the problem, they most likely cannot answer the question. Debugging details would help find a solution to the problem which is not what I'm looking for.
There are also reasons for not providing the shortest code to reproduce the problem. My code is supposed to interact with a third-party API whose code or configuration I cannot access.
I've edited the question to include the reason why the code doesn't work and I could add the instructions for solving the problem but that seems irrelevant to the question.
What I can conclude is that my closed question is not clearly off-topic but I'm not sure if it's on-topic here or if there is a better place for it.
Regarding some arguments, I'll address them here.
It comes down to teaching you how to debug
This sounds like a valid argument, at first. But if you look at the typical on-topic questions, you'll see that they come down to teaching you how to program. The only difference I see is that the "teaching you how to program" questions are clearly on topic, whereas "teaching you how to debug" is less clearly there. If you program, you'll need debugging skills. If you debug, you'll need programming skills. I don't see the value of focusing on one and excluding the other.
The question is unanswerable (and therefore off-topic)
Now there is code that is easy to write and then there's code that's hard to write. The same is true about bugs: some are easier to debug than others. There's probably some idea of what questions are too trivial but is there any about a question being too hard? Personally, I think that hard questions can be good questions and shouldn't be downvoted as "unanswerable" or closed as "not suitable". There may be comments along the lines "more details please!" begging for more clues about the problem, solution, or something else which is not really relevant to the question. I would interpret these comments in two different ways: 1) Either the question was not clear, or 2) the person making the comment doesn't have the answer. Neither case warrants more details to be added to the question. Sure, the question becomes more answerable by welcoming irrelevant answers but the irrelevant details also make it less clear what kind of answer was really requested.