If you’ve downloaded the Safari build on Windows, and you want access to the very helpful debug Develop menu (the javascript console, DOM viewer, etc), Do the following:

1) Open %APPDATA%\Apple Computer\Safari\Preferences.plist
(Or open C:\Program Files\Safari\Safari.resources\Defaults.plist)
2) Add the key / value:

...
<key>IncludeDebugMenu</key>
<true/>
...

for reference on Mac it’s:

$ defaults write com.apple.Safari IncludeDebugMenu 1

From the terminal.

In both cases you’ll have to restart Safari if you already have it open.

Also, in case you go to try it, it seems Safari doesn’t like to be run over a Remote Desktop session coregraphics.dll doesn’t like it:

Safari Remoted

Comments

This entry was posted on Monday, June 11th, 2007 at 3:02 pm and is filed under Mac, Web Apps, Windows. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

11 Comments so far

  1. [...] works, then if it doesn’t you can go back to scrounging some Mac time.I received a pointer to this blog entry that explains how to enable the debug console (I’d already tried something similar but [...]

  2. [...] received a pointer to this blog entry that explains how to enable the debug console (I’d already tried something similar but hadn’t [...]

  3. Big Kev on June 12, 2007 1:33 am

    Try connecting to the Remote machine using Start>Run & mstsc -v:IPADDRESS/HOTNAME -console and see if that lets it run?

  4. Quentin on June 12, 2007 4:32 am

    Watch out, because some sites will not not work the same when running on Safari with or without the debug mode enabled…
    It seems like Javascript is broken sometimes when Debug is enabled !

  5. Dan G. Switzer, II on June 12, 2007 6:09 am

    This was immediately clear to me, but you have to make this modification after you run Safari for the first time. The files are created on first run.

  6. rob on June 12, 2007 6:33 am

    Thanks Big Kev, but I am using Remote Desktop on a Mac - any idea how to translate that to Mac’fied?

  7. Mark on June 13, 2007 2:05 pm

    For a quick and dirty, you can type Ctrl-Shift-J to show the Javascript console. 1 also seems to work as well as as the value for the IncludeDebugMenu key.

  8. Jeff Bush on July 10, 2007 9:58 am

    In the newest version of Safari for Windows this has changed. It is now in …\Apple Computer\Safari\Preferences.plist (basically no longer in the Preferences folder)

  9. Dan on December 19, 2007 8:03 am

    After I enabled the javascript debug menu in the manner described here, Safari for Windows (beta, version 3.0.4 (523.12.9)) worked fine for a few days. Then it started failing–it would start up, but not even be able to load apple.com. Removing the debug menu seemed to fix the issue.

  10. [...] Safari obsahuje skryté debug menu, zobrazíte je úpravou souboru Preferences.plist, viz Enable Debug Mode on Safari (Windows) Error. [...]

  11. t0rus on September 5, 2008 7:38 am

    on winblows the develop menu in safari is only semi-functional, show inspector, console, network timeline don’t work at all

Name (required)
Email (required)
Website
Share your wisdom