Safari debug menu

I was looking for a Safari javascript console plugin that could show me the errors javascript generates. By default this function is not present in the Safari browser. So I tried searching google. I found a website that explained me how to reveal the Safari debug browser. It was hard to find thus I will explain this too so there will be more resources where this can be found. Type the following command in Terminal (while Safari is NOT running):

% defaults write com.apple.Safari IncludeDebugMenu 1

Then launch Safari, and enjoy the new Debug menu.