Content deleted Content added
→Without changing the code: +examples of using "=", which is faster to type than mw.log() |
→Without changing the code: change wikilink to Module:Example of lua debugging into an {{edit}} link |
||
Line 31:
====Without changing the code====
To obtain variables and values returned from functions (not local in both cases) the "Debug console" can be used. The "Debug console" appears below in the module page (when it is in edit mode). Then <code>mw.log</code>, <code>mw.logObject</code>, and <code>=</code> can be used. Let's see its usefulness in the next example
{{#tag:syntaxhighlight|
{{Module:Example of lua debugging}}
Line 59:
|}
{{edit|Module:Example of lua debugging|Try it out in Module:Example of lua debugging}}. The Debug console does not store the requests, then they will have to be copied or rewritten again in each module modification.
===Review of the flow and the variable values in several points===
|