Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "pls fam no bug"
God I feel like an idiot :/
So for about a week, I had this problem with a C++ JSON reading/writing lib which was fucking annoying as all fuck.
Basically, the problem was that when I sent data to the server ( Yes this is a server ), rapidjson would call assert(false), which would crash the program. Commenting out this call would not stop the crash, as it would just call the same thing somewhere else.
The code I thought had the little bastard of a fucking problem was in the commandsManager class, which, did commands managing ( Shocking, I know ), the only code which used the json lib in there was legit fucking copied and pasted from the docs.
I think you can guess that the problem wasn't in that fucking class, it after I had called a function in it in the main method, which didn't check if a very, very, VERY fucking specific member was there or not, but it tried to access it anyways. That caused the fucking crash
I had wasted a holy FUCKING WEEK ON THIS FUCKING BUG AND I WAS LOOKING, IN THE WRONG GOD DAMN FUCKING PLACE!!!1