Getting started

Create a project

For your code to be manipulated correctly by Lua Development Tools, it must be contained into an Eclipse project having a Lua flavor. In order to do this, you have to create a Lua Project, which will add Lua nature to your code.

In File > New > Lua Project, enter a valid name and voila!

Edit a Lua file

Now that your project is created, you are ready to start working on your Lua scripts. In every project, there is a default source folder, named src/. You can edit the main.lua file in it, notice that completion is already available for Lua built in functions.

Run a Lua script

To run your Lua script, the file has to be contained in a Lua project. If it is the case, you can simply right click on the file and select Run As > Lua Application.

The Run As menu creates a default launch configuration for the selected file and launch it.

Debug a Lua script

Simply define a breakpoint in a Lua file by right or double clicking in the first column at the beginning of the line. Select your project in favorite debug sessions and your breakpoint should be hit.