Let me add another question:
Why isn't the haxe compiler written in haxe ?
This could be related.
http://lib.haxe.org/p/hscript
Back to your question:
haxe translates to
- Java
- PHP
- JavaScript
- .net
- as3 (with some tweaking?)
- C/C++
source code
and all of those have debuggers. AFAIK some work has been done on
improving debugging for haxe. Try searching the mailinglist.
Haxe itself does allow you to modify the code before it gets compiled by
macro post processing or such (at least JS backend).
Haxe has a -debug flag already. That adds tracing code for exceptions or
the like.
So maybe it can already be done what you're looking for (assuming they
all behave exactly the same - which they eventually don't if you have
corner cases)
Excerpts from Séb Patu's message of Wed Oct 30 09:17:29 +0100 2013:
> in my quest of finding a debugger for haxe code, whatever target you use, i
> was wondering why nekoVM was not written in haxe?
Nekovm is a "general purpose virtual machine which makes it easy to run
functional applications such as haxe".
I only tried to list options which exist. I hope that others can comment
what of those ideas actually does work nicely.
Marc Weber