afb-debug: add features for debugging