Yes, countries can break treaties. But there is a real cost to doing so. The point of treaties (especially the anti-war treaties) is essentially to break a prisoner's dilemma: all parties can agree to do something that is mutually beneficial for everybody, but only when no one defects. The first arms control treaty was the Washington Naval Treaty, which was signed when most countries were literally unable to find the resources to keep up with the naval arms race and proposed by the one country that could.
If you read the post I linked (I suspect you did not, as you are only reacting to my comments and not other material within the post), you'll see that there are many other lines of evidence we can use to ascertain the inutility of chemical weapons, not least of which is the lack of its use in conflicts after WWI, even in existential state conflicts like WWII or the Arab-Israel wars.
> If chemical and biological weapons aren't useful, why does one need a treaty to ban them?
The same reason why we have laws against murder. The existence of the treaty isn't to keep people from doing something useful (indeed, if you look at which treaties are acceded to, it's the treaties that keep people from doing something useful that don't get the signatories). Instead, it's to signal the unwillingness to use it and to pressure others not to consider its use. And if you know sufficiently few people are willing to use it, then you can avoid spending the money on countermeasures to chemical weapons.