Debug issues - learning from docs

Hello I am learning debug from the docs, currently I am left with a question, what does it do?

-- debug.traceback()
-- debug.profilebegin()
-- debug.profileend()

I have understood that with ‘debug.traceback’ it is a track of operations in each function called (callback)

I have already read the docs but I do not understand its use and usefulness well, someone would be so kind to explain it to me :pray:

debug (