Give this a shot
This will allow you write out a trace on your code every so often and see how far the code executes.