I’ve been working on a live debugger for Ansible for use in Visual Studio Code or other Debug Adapter Protocol clients. I’ve got a brief demo video with some of the features at https://youtu.be/pd2XGRbmt9A. You can also have a look at the basic docs for it at Debug Adapter | ansibug.
Currently there is a PR for adding this to the official Ansible VSCode extension but you can try out the changes by following the guide in Debug Adapter | ansibug. As this relies on the Debug Adapter Protocol from Microsoft it should also be possible to use this with clients like vim or emacs but this is not something I’ve tried out yet.
Please keep in mind this is a preview and there is still work needed before this can be included by default but now is a great time to try it out and provide your thoughts and concerns about how it current works and how it could be improved.