HTML5 Print to Console


#1

It would be useful if anything printed was sent to the browser’s console for HTML5 builds.


#2

Html builds are currently always release mode but it will soon be possible to build debug that outputs errors and prints in the console.


#3

This functionality would be very useful, particularly for identifying problems that are only in HTML5 (as example)


#4

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.


#5

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”.