Content deleted Content added
Line 32:
====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> and <code>mw.logObject</code> will be used. Let's see its usefulness in the next example (module that can be found [[Module:Example of lua debugging|here]]):
{{#tag:syntaxhighlight|
{{Module:Example of lua debugging}}
|lang=lua}}
Requests to "Debug Console":
{| class="wikitable"
|