It would be useful if anything printed was sent to the browser’s console for HTML5 builds.
Html builds are currently always release mode but it will soon be possible to build debug that outputs errors and prints in the console.
This functionality would be very useful, particularly for identifying problems that are only in HTML5 (as example)
This works in recent versions of Defold. When you bundle your HTML5 game through Project->Bundle->HTML5 Application you now get an option to either bundle a release or debug version. If you don’t tick the release checkbox all prints’s will end up in the browser console.
It’s work, thanks! Very helpful!
I think that “Project->Build HTML and Launch” must be Debug mode by default as “Project->Build and Launch”.