-
-
Notifications
You must be signed in to change notification settings - Fork 662
Debugging hints
Simon Krajewski edited this page Jan 17, 2022
·
2 revisions
To debug the Haxe compiler, you can use either a system debugger (gdb
/lldb
), or ocamldebug. ocamldebug
provides a better debugging experience. To use it, uncomment (modes byte)
from src/dune and recompile.
To print information about a type, you can add the following before most lines:
Printf.printf "%s\n" (s_type_kind t);
There are lots of other stringifying functions, search for "Printing" in src/core/type.ml
and scroll down to find them.
Learn Haxe: Introduction | Manual | API | Try Haxe | Haxe Library Manager | Code Cookbook
Connect: GitHub | Stack Overflow | Forum | Discord | Gitter | Twitter | Facebook