[sdb] Add some debug output to help track down #18100.