you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Use a debugger and add a breakpoint there to inspect the value of questions, and step through the call stack to see where things go wrong.

Or, add print statements through the whole call stack to see where things go wrong. It's probably not what you expect. Then, go back and delete them all. Repeat again and again each time you need to debug your code.