sw_sync: add debug support