added debug logs to LVAL_ASSERT