Battery debugging