debug javascript console.log

Hello, Is there a way to use the command console.log() inside a javascript snippet? If not, how are you debugging your js code?  I am currently using alert() to debug my js code, but in some case this is not enough.  Thanks  
1 answers

console.log() works and shows the logs in browser console. At least working in chrome for me.
You will have to check the log level verbose to view these. This is not selected by default.