Logging is a key thing to have for simpler debugging of code. Normally console.log would be used for this, when developing with JS.

It seems we cannot use console.log within code–at least I have not been able to get it to work. Even if it worked, it would be a bit messy having the whole dev tools pane open on top of all the existing frames in the editor.

So some sort of logging out functionality and view would be useful I think–just the stuff logged by the user’s code. Even in the little REPL in the corner maybe? Or a tab within that? Whatever is fine.

Just something to help people debug with this simple method. For now, I’ve made my own which just logs to the page itself.

log(msg) => document.body.appendChild(document.createElement("div")).innerText = msg;
  • @wthit56OP
    link
    English
    14 months ago

    Thing is, I was trying console.log and it wasn’t even showing up in the dev tools, somehow. Just tried it again and it’s working. No idea what was going on there.

    But yeah, having it be built-in in some way would be helpful. Especially for those that aren’t so web-savvy.