When debugging a problem make sure you test your assumptions, especially when stuck. I just spent a while debugging something I “did” not working until I eventually realized I hadn’t done it at all.