try-haxe
try-haxe copied to clipboard
let trace being redirected to browser.console
in certain case , trace output could be very annoying .
i hacked it like this:
public function moveConsole(){
var console=body.querySelector("#debug_console");
console.style.position="relative";
var consoleWrapper=js.Browser.document.createElement("div");
consoleWrapper.style.backgroundColor="#00AAFF";
consoleWrapper.style.width= consoleWrapper.style.height="200px";
consoleWrapper.style.position="absolute";
consoleWrapper.style.right="0";
consoleWrapper.style.overflow="auto";
body.appendChild(consoleWrapper);
consoleWrapper.appendChild(console);
}
why not having such an option ? or simply let trace output to the console ?
thx
What do you want to achieve? trace
already logs in both browser console and visual console:
mm my bad ! didn't see it :)
ok then ! perhaps just allow a option for disabling the trace output on the visual console .