This function is unnecessary, you can add `debug=True` like this : 
`virsh.cmd(option, debug=True)`