What you should have done here was to edit your response into the question more as a form of "I have tried this, and this is the result of it." Editing clarifying information and other things you have tried into your question is a good thing! It helps make your question easier to answer. The hard part of it is editing the information in so that it all reads as a coherent question, which appears to be the issue you have here.
Comments are good for quick clarification questions and the like. Generally, if someone asks a clarifying question or suggests something you've already tried, you shouldn't reply in the comments and should instead edit your question with the information. This way, potential answerers won't need to read the comments to have all the information necessary to answer the question.
Your title asks about answers as well, so let me touch on that: Answers are for solutions to the question. Answers don't have to be correct to be posted, but they are extremely likely to be downvoted if they are incorrect. You should not use the "Answer" section of any question to reply to a comment or to ask a clarifying question of your own. Only comments should be used for that purpose. At 50 reputation, you'll unlock the ability to comment on posts other than your own.
In this case, you ended up using the correct method to respond to the comment (editing your question) while not quite having the best approach to that method. If you can, try rephrasing your last edit to the question in such a way that the comment you replied to doesn't have to be involved at all. This will make your question more coherent and easier to read.