@dvescovi Sharing the response here for the benefit of community.
The option NX_DEBUG_PACKET is used by driver. Here is the reference from ram driver: https://github.com/azure-rtos/netxduo/blob/617d1f0bb79ed1623efdeebabb100e299ef266ce/common/src/nx_ram_network_driver.c#L667
netxduo/common/src/nx_ram_network_driver.c
#ifdef NX_DEBUG_PACKET
You will need to implement it by yourself.
And option NX_ENABLE_PACKET_DEBUG_INFO is used to trace the packet in NetXDuo but not the content.
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.