If any such nonresident is so arrested, he or she may apply by petition in writing to any judge of this State, setting forth his or her residence and the state in which the debt was contracted, and the judge, on the production of satisfactory proof that the plaintiff was a nonresident at the time of issuing the process, and also that the petitioner is a nonresident of this State, and that the debt