var arr : Array<String> = [ "Toll!!!", "Fantastisch!", "Großartig!!!" ];
becomes
"var arr : Array<String> = [ "Toll!!!", "Fantastisch!", "Großartig!!!" ];"
"{ expr => EArrayDecl([{ expr => EConst(CString(Toll!!!)), pos => #pos(src/Main.hx:231: characters 36-45) },
{ expr => EConst(CString(Fantastisch!)), pos => #pos(src/Main.hx:231: characters 47-61) },
{ expr => EConst(CString(Großartig!!!)), pos => #pos(src/Main.hx:231: characters 63-78) }]),
pos => #pos(src/Main.hx:231: characters 34-80) }"
I would like to have inspected code shown as it is in the original HAXE notation as well as a nested structure carrying some more informations that can be evaluated or can be filtered out.
So, it becomes possible to check different variables at different times or to debugg a whole network of informations...
This differs from the conventional debugging concepts, that usually throw out specific variable values at the time they occur.
Let yourself be suprised what debugging might become...
;-)
I am curious for your suggestions.
Kind regards
Arnim
You could run Haxe compiler with original compile flags adding '--no-output' and '--macro your.inspection.Macro.inspect()' with a macro doing code analysis and what not. You can run it as a compilation server and store results in memory (if I remember correctly Jason's compile-time library has an example of complex structure stored by macro) or save it to file and read it first on every run (server or not).