try-haxe icon indicating copy to clipboard operation
try-haxe copied to clipboard

let trace being redirected to browser.console

Open postite opened this issue 8 years ago • 2 comments

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

postite avatar Nov 29 '16 09:11 postite

What do you want to achieve? trace already logs in both browser console and visual console:

image


image

markknol avatar Nov 29 '16 09:11 markknol

mm my bad ! didn't see it :) capture d ecran 2016-11-29 a 12 35 25

ok then ! perhaps just allow a option for disabling the trace output on the visual console .

postite avatar Nov 29 '16 11:11 postite