to write to a file the vars that are required for the second phase of the program after the fist phase quits. Then make a copy of the program pull out the long running phase and insert a section to load your variables before the second phase starts. That way you have the data structure of a real run stored and useable for debug without the long running portion running every time. The only limitations to this are if you are using coderefs or very complex structures.