I found plenty of info on this for Safari 3, but things have evidently changed in version 4. I just happened to stumble upon the answer by experimenting, so posting it here
Enable the debugging menu in safari 4 in Windows 7 http://madhukaudantha.blogspot.com/2011/02/enable-debugging-menu-in-safari-4-in.html