-- The debug library is unpredictable in some cases,
-- so we only include the safe parts.
-- Modify the table itself instead of setting the
-- global field, because debug can also be required.
localto_remove={}fork,_inpairs(debug)doifk~="traceback"andk~="getinfo"thentable.insert(to_remove,k)endendfor_,kinipairs(to_remove)dodebug[k]=nilend