Modul:SimpleDebug/dok: Razlika med redakcijama

Izbrisana vsebina Dodana vsebina
Jmarchn (pogovor | prispevki)
Jmarchn (pogovor | prispevki)
m Minor changes
Vrstica 1:
Contains a functions to help [[:en:Help:Lua debugging#How debug|debug the lua modules]]. It allows to collect and view the values of several variables and/or points in your lua program, from a module (which is usual) or in several modules (which are required from the main module).
 
It is designed so that its functions are called from within the module that is to be debugged, calls that will have to be part of the code (of the module that you have designed, or that you want to improve or adapt) until you decide to delete them (when you already have determined the bug). Thus, you do not have to call any of its functions from an invoke.
Vrstica 17:
* If it is ''false'' or it is ''true'' and contains nested tables, it will show a line for each item in the table and with an indent for each nested table.
* If it is ''true'' and it does not contain nested tables, it shows the table in a line.
 
|-
 
| <code>tab.allidx</code> || false ||
If it is true then also displays the numerical indexes of a table.
Vrstica 35 ⟶ 37:
|<code>plaintext</code> || false ||
Deletes html format.
|-
|<code>addcount</code> || false ||
Adds an autoincremental number at the beginning of each call of a function.
|-
! colspan="3" |One point to watch
Vrstica 74 ⟶ 73:
| <code>maxlines.doerror</code> || true ||
If it is true and <code>maxlines.num</code> is reached, <code>error(s)</code> is called.
|-
|<code>addcountcounter</code> || false ||
Adds an autoincremental number at the beginning of each call of a function.
|-
| colspan="3" |'''Functions'''
Vrstica 296 ⟶ 298:
returns:
 
{{color|red|'''Lua Error de Lua:MòdulModule:''VostreMòdulYour module'':''LíniaLine'': little number'''}}
 
{{color|red|'''little number'''}}
{{color|red|'''big{{=}}12'''}}
 
Vrstica 367 ⟶ 370:
 
<includeonly>
[[Category:Modules for test tools]]
[[Kategorija:Moduli za orodja, namenjena testiranju]]
</includeonly>