Lua Development Tools Debugger

The debugger is an interesting feature, but enabling it require a little explanation. The require steps allowing to run debugger are explained below.

Install Lua

The debugger client is written in Lua 5.1 as I'm writing. In order to be able to run it, Lua is required. You can download Lua here.
Under OSX and Linux Lua is available in software manager repositories.

Install LuaRocks

We need LuaSocket in order to get it, the nicer way is to install it through LuaRocks. LuaRocks is a component manager for Lua such as Pear for PHP or Gems for Ruby. Here is the link to install it.
Under OSX and Linux LuaRocks is available in software manager repositories.

Install LuaSocket

Once you installed LuaRocks, just ask for LuaSocket. On my Linux it looks like

Windows

Finally, how to start a debugger session

Create and run launch configuration

In IDE side everthing is set up to allow debugging. You just learnt about setting up debugger client. You just need few configuration tips.

IDE side configuration

Go to Window > Preferences > Dynamic Languages > Debug, you will have the UI below. Make sure that selected port is of Custom type and is the same as in DBGP_IDEPORT from previous run script. This post is used for communication between IDE and Lua debugger client. If those ports differ, debugger won't work.

Launch configuration

Creating a Remote Lua Application, you will have following window. Working directory field is to specify path difference when you are debugging a remote target. It allow debugger to strip this part of the path and match distant files with workspace ones.

Run command

Once you clicked Debug, IDE will wait for debugger client response. In order to provide it, you must run provided debugger code with debugged file as parameter.

Linux (OSX compatible)

If you installed the command as described above, you just have to run: