Monday, October 17, 2016

A solution to the debugger puzzle

Simple debugger does not want to worry block indentations, so it puts BreakHalt() in the source.  But display motion and free running the test software are exclusive, by rule and definition.  So on BreakHalt, restore the visible source from the saved lines.  On return to free run, put them back. Simple.   So, After loading up and initializing the source text, put break halt at line one cad call eval(for the whole program) and from then on the coll backs are from within eval.

I have yo mainaint a list of swapped out lines of code.  and one cannot stop eval from inside a function definition.  Minor inconveniences.  Then the interpreter context is always maintained, we are alys inside eval.  Actually, I kind of thought back and remembered how this was done, it is standard

No comments: