mko mko - 6 months ago 11
Javascript Question

console.log() doesn't work in Safari 6.0 Web Inspector

console.log('hi');

undefined


Is there any similar implementation in 6.0? or Did I do something wrong?

mko mko
Answer

I found the problem! Logs don't appear in the interactive console (which is located on the bottom), but in the Current Log window instead! You can access it through Develop > Show Error Console or the rightmost source icon in the Web Inspector.

So strange! Is it that hard to get simple output in the console, like puts and print in Ruby?

Comments