A Quick Lesson After A Long Debugging Session (And Almost Pulling My Hair Off)

I almost pulled my hair off.

I debugged an issue in a Blazor grid for over two half days. I followed my own advice from Street-Smart Coding: isolated the problem, remove all irrelevant parts…Just to keep seeing the same error message: TypeError: Cannot read properties of null (reading ‘removeChild’).

After questioning my career choices, I asked for help.

My coworker pulled my branch and reproduced the issue. To my surprise, the issue wasn’t only in my grid. It was in all other grids, all over the app. It was an issue in the Blazor component itself. Arrggg!

Sometimes you just need to ask for help earlier.