Is there any way to log to Safari's JavaScript console when running with the built-in JavaScript debugger? I've read the Firefox JavaScript logging question and hoping that there is a simple ("native") way to do it in WebKit/Safari.
Thanks
console. log will work "natively" in Firefox (with Firebug), IE8+, and WebKit browsers (including Safari).
The console. log() is a function in JavaScript which is used to print any kind of variables defined before in it or to just print any message that needs to be displayed to the user. Syntax: console.
Make sure that you're selecting "All" at the top of your console window. Sometimes it'll automatically switch to only show Errors, Warnings, or Logs. If you select "All", then you should see all your console. log() s!
Make sure you have "All" selected in the top right corner of the dev tools.
If it's set to "Error" then your Safari will only show console.error()
.
You can use the same console
object described in that question. The messages will show up in the console tab.
console.log("hello console");
console.log
will work "natively" in Firefox (with Firebug), IE8+, and WebKit browsers (including Safari).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With