Reimplement is_debug_enabled in Lua.