Content deleted Content added
→How debug: grammar |
|||
Line 21:
To avoid facing too many errors at once, the general strategy is to make "one small change" at a time, do a run show-preview, and then save that tested version after a few good changes to have a stable version to restore, in case terrible errors occur after numerous later changes. Note: the saving of each working copy can be done to a set of offline text files, perhaps each with a specific version name (and internal comments), rather than saving each version into the Wikipedia module revisions.
== How to debug==
===Simple review===
To see the value of a variable in a single point of the module:
Line 58:
===Review of the flow and the variable values in several points===
The functions of the [[Module:SimpleDebug]]
* When
* To see if the flow of the program goes through a point (to which you will label).
* To limit the number of values returned from a loop or set conditions to enable the registration of values.
|