Update debug-functions.lua