It was around midnight on a Thursday when our platform team had finally finished a data migration. It took about 3 hours longer than expected and I had volunteered to be the front end developer counterpart on call to check if everything looked fine on the site after the migration. Easy deal, I thought. But then things took an unexpected turn.

We were all tired from this massive migration and even though I was a spectator for the entirety of it, I was feeling the residual stress and ready to sleep now that we were creeping into the next day. A quick glance over the site showed no obvious errors. Well, except for one. Our real time line chart was no longer working. This is the chart many of our customers proudly displayed in the lobbies of their businesses and executive offices. It looked cool. Not so much when it was flatlining.

There were now two options: rollback the data migration or figure out the cause of this bug. It was about 12:30AM now and I decided to do what any good developer would do at this time and REST. Reproduce the bug locally. Examine the source code. Set breakpoints. Test the fix.

#javascript #javascript-tips #programming

Debugging Javascript Code Using the REST Method
1.90 GEEK