Add debug code to debug gatt_server and gatt_bridge