Debugging Lua

In the last chapter, you learned how to use some of Lua's, built-in modules and how to create your own module. At this point, you know most of the libraries and concepts Lua has to offer. This chapter will help you understand what to do when unintended bugs creep into your code.

Some of the properties that make Lua extremely powerful also make it easy to introduce unintended bugs. Sometimes, even the simplest of bugs can take a significant amount of effort to fix. Lua provides powerful debug libraries that help make these bugs easier to track down and resolve. In addition to debug libraries, a number of great external tools also exist.

In this chapter, we are going to cover the following topics:

  • The debug library
  • Error-handling in Lua
  • Profiling 
  • Integrated development environments
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.245.167