change debug macro to advanced format