Add paranoid debug output in open_capture_device().