Question: how to enable lwip debug?
Answer: Enabling debug output in LWIP To enable specific debug messages in LWIP, just set the specific define value for the LWIP *_DEBUG value to " LWIP_DBG_ON". A full list of debug defines that can be enabled can be found in the opts. h file. Just copy the defines for the debug messages you want to enable into the lwipopts.