One more way to debug Async/Await Promise hell

Debugging Async/Await Promise hell is a fun activity. It is a great time sync for many developers who are coming from other languages or the beginners alike.

Short Version

If your code is not waiting for Promise to complete, check the return statement across the chain of functions.

When in doubt add a ‘return’ statement.

This link has a slightly simpler explanation on how to use async and await.



I write about firebase, Dialogflow, Python and Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store