When and by whom writs of habeas corpus ad testificandum granted

Va. Code Ann. § 8.01-666, under Chapter 25. Extraordinary Writs..

Va. Code Ann. § 8.01-666

Writs of habeas corpus ad testificandum may be granted by any circuit court in the same manner and under the same conditions and provisions as are prescribed by this chapter as to granting the writ of habeas corpus ad subjiciendum so far as the same are applicable.