Computer 그리고 Developer

Enable the Debug menu in Safari 3.0 for Windows

버리야 2007. 7. 3. 21:54
반응형
Enable the Debug menu in Safari 3.0 for Windows

If you're a web developer, Safari's Debug Menu is a necessity. Fortunately for those of us stuck in Windows, Safari's Debug menu is still available, however, it appears you have to get your hands dirty to enable it.
On a Mac, you'd open a Terminal and type:
defaults write com.apple.Safari IncludeDebugMenu 1
As far as I can tell, Windows doesn't have Apple's defaults utility. Instead, you have to directly edit the plist file, where the preferences are stored and the Debug menu is enabled. This is just a plain-text XML file. So to enable the Debug menu in Safari for Windows, add the following key-value pair to

c:\Documents and Settings\your username\Application Data\Apple Computer\Safari\Preferences.plist:
<key>IncludeDebugMenu</key>
<true/>
Insert the above code before the closing </dict> element and restart Safari. It seems a little more spartan than Safari for Mac's debug menu, but at least it includes a JavaScript console and User Agent switching. (I also posted this on my blog.)

출처 : http://www.macosxhints.com/article.php?story=20070611144942562

반응형