Content deleted Content added
created, as a Wikipedia help-page, to begin describing methods to debug Lua script for Wikipedia use. |
== Support == If you're still stuck and not sure how to proceed, please leave a note on Wikipedia:Lua requests requesting debugging help. |
||
Line 27:
== Plan for extensive debug-display code ==
As another issue of strategy, adding debug-display sections does not slow Lua code as it might the speed of markup-based template execution, because Lua can process hundreds of if-conditions at rapid speed. Even the addition of an extra if-statement for every Lua variable has little drag on speed, compared to slowing a template by perhaps 50% if adding similar if-expressions inside a markup template. Feel free to have many sections of debug-display added into a Lua module, or add several [[parameter validation]] tests as extra if-statements to check the values of variables to detect typical bad data.
== Support ==
If you're still stuck and not sure how to proceed, please leave a note on [[Wikipedia:Lua requests]] requesting debugging help.
== See also ==
|