Open fperrad opened 3 years ago
This library provides the functionality of the debug interface (§4.7) to Lua programs. You should exert care when using this library. Several of its functions violate basic assumptions about Lua code (e.g., that variables local to a function cannot be accessed from outside; that userdata metatables cannot be changed by Lua code; that Lua programs do not crash) and therefore can compromise otherwise secure code. Moreover, some functions in this library may be slow.
at least, this library is not recommended.
I want run code in production with a Lua interpreter compiled without this library debug
not with the test suite using busted
which depends on debug
.
not with the test suite using
busted
which depends ondebug
.
I believe busted
allows you to modify globals during a test, and will restore them afterwards. You should be able to run debug = nil
during a test to remove it?
the use of debug library could be not safe.
this commit protects two calls of
debug
there are two other occurences of
debug
:busted
uses heavilydebug