I have been told that this is a useful means of checking code but how do I actually use it? Do I type it from within firebug or onto my script?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can just use
in your code. Where is something you want to log.
As the other poster references. Firebug Logging Documentation is helpful
The Chrome debugger works the same way with console.log() IE does not.
Also note you should not leave console.log in your code as run-time code will fail if you leave that in and you don’t have a console object.