The injection of local anesthetic into tissue surrounding a nerve for diagnostic or treatment purposes.