Have you ever tried using debug mode to watch line by line.