esp-open-sdk icon indicating copy to clipboard operation
esp-open-sdk copied to clipboard

How to compile the SDK with lwIP in debug mode?

Open rzajac opened this issue 6 years ago • 1 comments

Hello, A beginner to C and ESP SDK here :) I would like to see debug messages which can be helpful while getting to know how exactly TCP stack works. Thanks!

rzajac avatar Jun 25 '18 23:06 rzajac

edit esp-open-lwip/include/lwipopts.h:

make sure it contains

#define LWIP_DEBUG 1 #define LWIP_DBG_TYPES_ON LWIP_DBG_ON

plus enable the debugging types you want like:

#define IP_DEBUG LWIP_DBG_ON

rebuild esp-open-sdk

st0ff3r avatar Jun 12 '19 10:06 st0ff3r