Filtering the information

The debug.info function is pretty slow, and this happens mostly because of all the data it has to collect. To speed up the function enough, there is an optional second argument that will filter out what variables are present in the return table. The second argument is a string, and it can have any of the following variables:

  • "n": Filters name and what the name represents (namewhat)
  • "f": Filters func
  • "S": Filters source, short_src, what, linedefined, and lastlinedefined
  • "l": Filters currentline
  • "L": Filters activelines
  • "u": Filters nup
You can combine multiple filters in the filter string. For example, to get name and what you would do: debug.info(1, "nS")
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.83.151