js.Browser.console.log("Hello world"); js.Browser.console.info("Haxe is great!"); js.Browser.console.warn("Something could be wrong"); js.Browser.console.error("Something went wrong");
debugger statement functionality to do the same from code.
In Haxe the same can be done with
js.Lib.debug function; this inserts a
debugger statement that will make a breakpoint if a debugger is available. If no debugging functionality is available, this statement has no effect.