Getting started | ||
---|---|---|
![]() |
![]() |
|
LDT User Guide | Concepts |
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!
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.
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.
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.
![]() |
![]() |
![]() |
LDT User Guide | Concepts |