However, you could use RevPDB: https://morepypy.blogspot.com/2016/07/reverse-debugging-for-...
Reply on news.ycombinator.com