When a judicial officer considers that there is sufficient cause for charging the accused or juvenile taken into custody pursuant to § 16.1-246 with a felony, unless it be a case wherein it is otherwise specially provided, the commitment shall be for trial or hearing. Any recognizance taken of the accused or juvenile shall be upon the following conditions:
The court may, in its discretion, in the event of a violation of any condition of a recognizance taken pursuant to this section, remand the principal to jail until the case is finally disposed of, and if the principal is remanded to jail, the surety is discharged from liability.
When a recognizance is taken of a witness in a case against an accused or juvenile, the condition thereof shall be that he appear to give evidence in such case and that he shall not depart from the Commonwealth without the leave of such court or judge.
Va. Code § 19.2-135