Jump to content

Module:Log globals/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
typo
Don't link to deprecated template
Line 1: Line 1:
{{module rating|b}}
{{module rating|b}}
{{transclusionless|reason=it is intended largely for debugging the use of globals}}
<!-- 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 globals and adds the to the lua log along with where they were read/written. This module is different from [[Module:No globals]] as you can see all nil global variables that are being read/written to rather then only getting an error for the first problematic global variable. The <var>arg</var> variable is excluded.
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 then only getting an error for the first problematic global variable. The <var>arg</var> variable is excluded.


== See also ==
== See also ==
* [[Module:No globals]] - Creates error message for first encountered nil global read/write
* {{ml-lua|strict}} - Creates error message for first encountered nil global read/write


<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||

Revision as of 22:05, 24 October 2022

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 then only getting an error for the first problematic global variable. The arg variable is excluded.

See also

  • require('strict') - Creates error message for first encountered nil global read/write