Developer

The debug console can help you resolve webpage errors. If it’s turned on, the console appears automatically when a webpage error occurs.

Turn the debug console on or off: 

Choose Safari > Developer, and turn Debug Console on or off.