Toggle menu
15
236
71
27.6K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Log globals/doc: Difference between revisions

From Kenshi Wiki
Created page with "{{doc sub}} {{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. --> 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..."
 
No edit summary
Line 1: Line 1:
{{doc sub}}
{{doc sub}}
{{module rating|b}}
{{transclusionless|reason=it is intended largely for debugging the use of globals}}
{{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. -->
Line 11: Line 10:
<includeonly>{{Sandbox other||
<includeonly>{{Sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Modules]]
[[Category:Lua metamodules]]
[[Category:Lua metamodules]]
}}</includeonly>
}}</includeonly>
<noinclude>
[[Category:Module documentation pages]]
</noinclude>

Revision as of 01:21, 2 March 2025

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

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