Before issuing a search warrant, a judge, or magistrate authorized by law to issue search warrants, must examine on oath the complainant and any witness he may produce, take their depositions in writing and cause them to be subscribed by the persons making them. Such depositions must set forth facts tending to establish the grounds of the application or probable cause for believing that they exist.