gavr123456789 / Niva

Smalltalk like programming language
https://gavr123456789.github.io/niva-site
41 stars 2 forks source link

niva debug mode #302

Open gavr123456789 opened 2 weeks ago

gavr123456789 commented 2 weeks ago

Add additional context arg to each function call
This arg contains all the stack trace with wich the function was called, deduplicated.
like in func d we will have a -> b -> d, a -> c -> d and each of the node contain all the arguments, so its ez to debug - on which level all goes badly.

Also maybe save the all possible values of each expression somehow, so they shown in the onHover action

gavr123456789 commented 2 weeks ago

add replace all expressions with special function calls that will create debug file wich contains Set::callStacks(if it possible - with args), file, line, charStart charEnd.
Then valse parsing that file and shows this additional info on each expr