Module:Log globals/doc: Difference between revisions
Appearance
Content deleted Content added
Don't link to deprecated template |
m grammar |
||
Line 3: | Line 3: | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> |
||
This module finds nil global variable use and adds the to the Lua log along with where they were read/written. This module is different from {{ml-lua|strict}} as you can see all nil global variables that are being read/written to rather |
This module finds nil global variable use and adds the to the Lua log along with where they were read/written. This module is different from {{ml-lua|strict}} as you can see all nil global variables that are being read/written to rather than only getting an error for the first problematic global variable. The <var>arg</var> variable is excluded. |
||
== See also == |
== See also == |
Latest revision as of 03:53, 18 March 2023
![]() | This template may have no transclusions. This is because it is intended largely for debugging the use of globals. |
This module finds nil global variable use and adds the to the Lua log along with where they were read/written. This module is different from require('strict')
as you can see all nil global variables that are being read/written to rather than only getting an error for the first problematic global variable. The arg variable is excluded.
See also
[edit]require('strict')
- Creates error message for first encountered nil global read/write