Content deleted Content added
→Modifying the code: Rephrased a few sentences and made the headers more understandable and meaningful in the header structure. |
→Occasional timeout errors: add section "Off-wiki tools". mention regex checker, IDE, step debugger |
||
Line 107:
The overall effort appears unstable, or unreliable, as if Lua suddenly "gets too tired" and starts complaining by storing "Script error" into the resultant page, where formatted text would have been expected instead. The timeout problem is somewhat rare, and when a formatted article contains "Script error" text inside the page, then perhaps edit the page slightly, to make a small change, to force the replacement of the page with a clean Lua run.
== Off-wiki tools ==
=== IDE ===
Running your code through an IDE is helpful for its text highlighting features, which can help you quickly spot syntax errors. Any IDE with the ability to install a Lua plugin should work. This could be as simple as [[Notepad++]] (with Lua selected from the language menu) or as full-featured as [[Visual Studio Code]].
=== Step debugger ===
Step debugging is a powerful tool that allows you to step through code one line at a time, and hover over variables to see their contents at the time of execution. IDEs that easily support Lua step debugging include [[ZeroBrane Studio]], and [[IntelliJ IDEA]] with its [https://plugins.jetbrains.com/plugin/9768-emmylua Lua plugin].
=== RegEx ===
Lua uses a unique flavor of [[Regular expression|regular expressions]] that is not supported by top RegEx tools. One tool that can be used for checking Lua RegEx includes [https://gitspartv.github.io/lua-patterns/ Lua patterns].
== Support ==
|