[cli] add rudimentary debugging stuff