Provide LWIP_DEBUGF definition that uses VBox logging facilities. lwIP's default debugging level corresponds to VBox level4 so to get all the gory details of the stack operation (a lot of them) use
VBOX_LOG="+lwip*.e.l2.l3.l4"