Wanna play a game of 'find the stupid bug' ?

EnjoY

@sijmen haha yes, I was wondering so hard why it wasn't returning the right stuff :')

@aetios Clue was print(ds) always printing the same thing. I would recommend looking into a proper debugger instead of shotgun debugging

@sijmen I mean, is there a debugger for python? Printing things out has always worked just fine for me. I wasn't really shotgun debugging, it took me only like 5 minutes to realise, and that includes slacking off and ranting to colleagues :P

@aetios @sijmen Tip: Pycharm. They have integrated pdb so you can set breakpoints within the editor.

@bej @sijmen myeah i used tot use pycharm but then I got used to nvim 🤔

@aetios If you're doing it for the movement commands, Pycharm has a plugin for that

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko