I have a simulator written in C++ which reads a file and processes it line by line. This is a time consuming process. I mostly run into rum time errors where the program crashes after 15-20 mins. I start debugging and the program takes the same amount of time to hit the break point I set . I examine a few variables and step through the code to see whats happening , make some changes and restart my program again. Most of the times, I have to debug the program multiple times before I make the actual code changes. Waiting for 15 mins every time for the execution to hit the breakpoint is wasteful. Is there a way I can save the program state a particular breakpoint and then later just start running/debugging from there.
I am sure I am not the only one who must have faced this problem. There must be a solution to this.