I would not debark, it would only be a very, very, very last case scenario for me if there ever was no other way.
I find surgery too invasive to risk and an extreme solution (if any). Especially on a just in case basis, I also train train train and try to keep my dogs mentally and physically too tired to bark excessively when inside and find a place to live that is well sound insulated (IF I had to) and look for neighbours that put up with us...
not being judgemental to people who felt they had to debark, I have softened my stance on it, after listening and learning on this Forum.
But for me, personally I would say I would probably never do it, if I would it would have to be a do or die situation.