Module for IDE Lua debug. This is an add-on for EmmyLua Debugger
You can:
- clone the repository:
git clone https://github.com/a1div0/lua-debug-helper.git
- install the
lua-debug-helper
module usingtarantoolctl
:
tarantoolctl rocks install https://raw.githubusercontent.com/a1div0/lua-debug-helper/main/lua-debug-helper-1.0.2-1.rockspec
- Install EmmyLua
- Put breakpoints
- Run your script with the port pointing to the same port as you chose in settings EmmyDebugger:
Not invasive (the order of the arguments is important):
tarantool -l lua-debug-helper example.lua --dbg_port=9966
Invasive:
- In your project add this code:
require('lua-debug-helper').run(9999)
-- or
require('lua-debug-helper').run() -- default port is 9966
- Run, example:
tarantool example.lua