Add dbg_before() and dbg_after()