Optimalworks Ltd web design, SEO, training and consultancy 

the site completely surpassed my expectations GT, AutoDirector, we build websites that work, my website is great - I love it MP, XL Autos, reach more customers, make more sales, it's more than I ever could have expected LM, Trade Cars UK, we can help your business grow, 99% of business now comes from my website GV, Bash Events, promoting standards throughout the web industry, your contribution added a level of quality we would otherwise have struggled to achieve PS, Hemsley Fraser
  1. home
  2. Services
  3. Portfolio
  4. Contact us
  5. blog

JavaScript console for Safari on Windows

written by craig, 13 June 2007

Unlike Firefox or Opera, Safari for Windows does not offer a wide range of debugging tools and they are fairly well hidden. To enable the Safari Debug menu option, you need to find your Preferences.plist file located in %APPDATA%\Apple Computer\Safari (%APPDATA is typically C:\Documents and Settings\your login name\Application Data\).

Open the file and add the following lines somewhere within the <dict> section: <key>IncludeDebugMenu</key> <true />

Restart Safari, and you will now have a new Debug menu immediately after Help. This offers a JavaScript console and a few other options.

I’ve been through a lot of my code and, with the exception of a single regular expression, Safari’s been very well behaved.

Would I switch from Firefox, IE, or Opera? Not a chance – and I doubt many people will. The interface is likely to confuse many Windows, Gnome, and KDE users and the browser doesn’t feel integrated with the OS.

However, I finally have a chance to prove my sites work on all platforms without resorting to slow online screen shot generators or humbly begging Mac users for their help!

  • categories: javascript, web browsers
  • tags: javascript, safari
  • trackback: http://www.optimalworks.net/blog/2007/web-development/javascript/safari-javascript-console/trackback
  • bookmark: del.icio.us, digg, facebook, twitter, reddit, Furl, Spurl, Blinklist, Slashdot, Technorati, Yahoo!

8 comments:

  1. 15 June 2007 Stephen Cunliffe commented

    Thank you very much! I was looking all over for this. As soon as I found out that Safari natively supported console.log( str ) it drove me nuts that I couldn’t see a log…

  2. 17 June 2007 Jeff at wwwthenewsroomcom commented

    While I’m a fan of anything mac, I thnk people need to realize it’s not about market share; it’s about the iphone.

  3. 17 June 2007 Craig commented

    The iPhone could be very important. It will run Safari and use web systems for applications rather than embedded or installed code. That’s an interesting development and could see an explosion in Web2.0 phone-enabled applications.

  4. 17 June 2007 Ricardo Carrasco commented

    thanks for the info, very much appreciated, nice site you have here also

  5. 25 July 2007 undextrois commented

    nice article .thanks

  6. 14 August 2007 dreamwind commented

    Thank you very much! It’s a great solution

  7. 23 February 2008 iphone nova commented

    Great tip for new budding developers

  8. 2 October 2008 Robert Walker commented

    Thanks for posting this. I was looking all over for how to open the blasted JavaScript console.

add your comments
please enter your name
please enter your email address - it will not be published anywhere
please enter your website address
please enter your comments (all are moderated and checked for spam)

  • next article: TACS – free PHP template and caching script 
  • previous article: At last – Safari for Windows 
search
  • all popular (5)
  • courses (2)
  • general (4)
  • hardware (1)
  • software (31)
    • blogs (1)
    • free download (8)
    • web browsers (12)
    • web servers (2)
  • web development (44)
    • accessibility (4)
    • ajax (1)
    • css (3)
    • graphic design (4)
    • html (1)
    • javascript (12)
    • php (6)
    • seo (2)

tags

  • accessibility
  • ajax
  • analytics
  • apache
  • award
  • book
  • chrome
  • computing
  • css
  • design
  • developers
  • dom
  • download
  • editor
  • emulation
  • firefox
  • funny
  • google
  • graphics
  • hardware
  • html
  • ie
  • javascript
  • opera
  • php
  • png
  • portfolio
  • review
  • ruby
  • safari
  • security
  • seo
  • server
  • software
  • spam
  • ssl
  • standards
  • wordpress
  • xml
  1. site map
  2. home
  3. Services
  4. Portfolio
  5. Contact us
  6. blog
  7. RSS feed
  8. project survey

XHTML 1.0 | CSS 2.1 | WAI AAA | printer-friendly

©2013 Optimalworks Ltd, Devon, UK. Registered in England and Wales No. 5922205.

This page can be viewed at http://www.optimalworks.net/blog/2007/web-development/javascript/safari-javascript-console