Turn on the Debug menu
Step 1: Open up the Preferences.plist file in notepad.
In Windows XP: C:\Documents and Settings\USERNAME\Application Data\Apple Computer\Safari\Preferences.plist
In Windows Vista: C:\Users\USERNAME\AppData\Roaming\Apple Computer\Safari\Preferences.plist
Step 2: Add the following to the end of the file, just before “</dict></plist>”:
Step 3: Now open up Safari and you have the Debug menu
Where can I find a Debugger for Safari?
You can download the Drosera debugger here: http://nightly.webkit.org Now, before you go trying to run it, you’ll want to read the next section below.
How do I run Drosera in Windows?
Step 1: Make sure you download the Webkit Nightly Build located at http://nightly.webkit.org and extract its contents somewhere on your harddrive.
Step 2: If you’re running Win Vista then you’ll have to add the following to the WebKitPreferences.plist file, just before “</dict></plist>”:
You can find the WebKitPreferences.plist file within the same folder that the Preferences.plist file is in; it’s path is shown above. Also, if you’re running Vista and you don’t add this snippet to the WebKitPreferences.plist file, then Safari will crash and you wont be able to debug until you add it.
Step 3: Execute the run-nightly-webkit.cmd file. This will launch Safari.
Step 4: Execute the run-drosera.cmd file. This will launch Drosera.
Step 5: Execute the FindSafari.exe file. This will link up Drosera to your running instance of Safari.
If you have multiple instance you may want to close all but one. I don’t know if multiple instances of Safari will cause this to not work, but it’s better to be safe.
Step 6: Now you can access web pages with Safari and step through / break on errors in the code.
- Debugging with Drosera is very slow, and actually froze up a couple times on me and I had to restart Safari and Drosera.
- Since I'm used to the debugging experience in MS Visual Studio, I am very dissapointed in Drosera. You'll know what I mean when you use it.
All in all, I hope this post saves someone the hours it took me to figure this all out. Afterall, there isn’t any instructions (at least that I could find) on the WebKit site that tells you how to actually run Drosera on Windows.
Good luck, and I hope Apple improves the developer support for Safari.
- 01 Jul 2020
- 06 Apr 2020
- 02 Jan 2020
- 24 Jul 2019
- 10 Oct 2020
- 01 Jul 2020
- 06 Apr 2020
- 11 Mar 2020
- 15 Feb 2020
Recent on Build5Nines.com
- 04 Dec 2020
Latest Cloud News: Apple on K8s, IoT, Microsoft Pluton and more! (November 20, 2020 Build5Nines Weekly)20 Nov 2020
Latest Cloud News: .NET 5 Released, Apple Silicon M1 CPU, and more! (November 12, 2020 Build5Nines Weekly)12 Nov 2020
- 11 Nov 2020
Latest Cloud News: Kubernetes, Terraform, Teams Multi-Login and more! (November 5, 2020 Build5Nines Weekly)05 Nov 2020
This site is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com. We also participates in affiliate programs with Udemy, and other sites. This site is compensated for referring traffic and business to these companies.