Yeah I had a coworker who put salty MessageBox.Show debug messages in the code, and one day while demoing the software a pop up appeared that said “BITCH!!!”
Needless to say the customer was not amused. So the simple solution is just ban the bad words from the source code.
I wrote something similar in another comment. This is where I have seen curse words bite teams too. It is always the needless "joke" when debugging that surfaces. Just go boring. No one gets offended by "check 001."
Well, I do get offended by "check 001" - please just put some words there about what was checked. The worst offender of course is "unexpected error occurred" - my PTSD is so triggered by that one. Just freaking give me some error details!
Swears are fine and good, slurs not so much.