Debugging to create tables in Lua

Is there a way to install a debugger in Lua for whenever a table is created? I have a rather complicated program, and I want to see where all the tables are created, so I can optimize and use them if possible. Alternatively, is there a way to do this using a metamethod in tables?

+4
source share
1 answer

There is no debugging for debugging.

You can perform static analysis of your code by doing a search luac -lfor NEWTABLE.

+1
source

Source: https://habr.com/ru/post/1663906/


All Articles