Book Image

Mastering CryENGINE

By : Michelle Martin
Book Image

Mastering CryENGINE

By: Michelle Martin

Overview of this book

Table of Contents (17 chapters)
Mastering CryENGINE
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using the Lua debugger


Although debugging a Lua script is a bit easier than debugging the C++ code, it can sometimes be useful to have the ability to set breakpoints and step through the script. This is where the Lua debugger comes in. This very useful tool is easy to overlook since it is very well hidden, without any user interface that would let you find it.

The Lua debugger can be operated using the following two console commands:

  • lua_debugger

  • lua_debugger_show

While lua_debugger will enable the debugger, lua_debugger_show will open the debugger window to let you have a closer look at things. Take a look at the following screenshot:

The Lua debugger window

Using the Lua debugger is very similar to using any other debugger such as Visual Studio. When the debugger is active, it allows you to set breakpoints, trace points, step through your script, and look at the content of your variables more closely. The Lua debugger is available in both Sandbox and your actual CryENGINE executable.

The...