Debugging JavaScript on Safari for Windows
Par Jean-François, lundi 11 juin 2007 à 23:12 :: WYMeditor :: #130 :: rss
As Safari has been released for Windows, I wanted to see how WYMeditor would react with it.
Unfortunately, the debugging feature built in Safari is disabled by default, so it's difficult to debug JS code.
Fortunately, I found a quick hack to enable the debug menu!
- Firstly you'll need Windows Installer 3.0+ to install Safari.
- After installing Safari, go to C:\Documents and Settings\...your username...\Application Data\Apple Computer\Safari and edit the file Preferences.plist with a raw text editor.
- Add the key IncludeDebugMenu under other key entries, e.g.:
<key>HomePage</key> <string></string> <key>IncludeDebugMenu</key> <true/> <key>InputFieldWidthRatio</key> <string>2</string>
- Restart Safari.
- Select Menu -> Debug -> Show JavaScript Console. That's it!
BTW, if you feel adventurous enough, a test page is available.
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.