jcoplien / trygve

The trygve language project - Building a DCI-centric language from the ground up
GNU General Public License v2.0
104 stars 15 forks source link

Problems when enabling debugging: infinite loop (and other associated debugger problems) #132

Closed jcoplien closed 2 years ago

jcoplien commented 2 years ago

This issue is per commit 672f48b77bcac52df677f13cc3442d8613d94505.

The main thrust of this delta is to deal with a debugger problem. There are internal object code nodes that have no mapping to a source statement, but just support the virtual machine. The code generator was getting confused when trying to make a map from these code graph snippets to source line numbers. Very confused. It caused an infinite loop.

There was other cleanup such as cleaning up the IDE state when the user closes the debugger window. I fixed a minor bug related to debugging code with a graphics window.

Last, there were some aesthetic changes to borrow_library_panel4.k which was used to chase this issue.

jcoplien commented 2 years ago

Fixed with commit as described above,