Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

David Pierce
David Pierce
2,700 Points

Can't open browser's console on Safari

I have the safari console. I tried to open the browser's console with Cmd+option+C (I even tried all the other keyboard shortcuts as well). Nothing is working. What am I doing wrong?

3 Answers

Adam Pengh
Adam Pengh
29,881 Points

You have to enable the Developer Menu first for Safari. Instructions below:

"If you’re a web developer, the Safari Develop menu provides tools you can use to make sure your website works well with all standards-based web browsers.

If you don’t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select β€œShow Develop menu in menu bar.”

https://support.apple.com/guide/safari/use-the-safari-develop-menu-sfri20948/mac

David Pierce
David Pierce
2,700 Points

Thanks Adam. I'll give that a try later on today. I appreciate your help. Thank you.

David Pierce
David Pierce
2,700 Points

I appreciate it Adam. I now have the "develop" option on the menu bar. But now how do I open the browser's console from here? I don't see it. Thanks in advance..

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi David,

Unless limited for reasons beyond your control, I strongly recommend not using Safari for Development... it really is not the best... Personally, I find Safari subpar in almost every aspect of a web browser.
So, I very much recommend using Chrome for anything Development related. You will also find the courses at Treehouse will be easier to follow along with as all the instructors there use Chrome and the Chrome Dev Tools in instructions.

Keep Coding! :) :dizzy:

David Pierce
David Pierce
2,700 Points

Thanks for your input Jason. I suppose I can just download Chrome to my Mac, is that correct? I'm relatively new to this all...

David Pierce
David Pierce
2,700 Points

Hello Jason, I think I'm understanding what you are saying. Do you find Safari subpar for development because it shows bugs for JS when it shouldn't? I see correct JS coding, but yet the browser comes back showing erroneous coding.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

David Pierce

Finding it sub-par is just my personal experience in using it. I don't even use Safari to casually browse. Compared to Firefox, which has great (and easy to use) privacy and security abilities (and not too bad developer tools) and Chrome which I feel is designed with developers in mind, Safari just falls way behind in all aspects of what I look for in a browser.
I'm Apple all the way... except for many of their software releases lately (don't even get me started on Xcode). Anyways, it's really is just my personal opinion. But I do strongly suggest using Chrome at least when developing and especially when learning how to code (not just on Treehouse), as pretty much all developers use Chrome.

:) :dizzy:

Adam Pengh
Adam Pengh
29,881 Points

David Pierce With Safari open to a webpage, you can press Option + Command + i to open the Web Inspector and the click on the Console tab.

David Pierce
David Pierce
2,700 Points

Super cool. Thanks Adam...