Enable table debug mode only if global debug flag is set