https://github.com/norman/lua-devtools
An irb-workalike for Lua, and a command-line debugger with readline support.
https://github.com/norman/lua-devtools
Last synced: 7 months ago
JSON representation
An irb-workalike for Lua, and a command-line debugger with readline support.
- Host: GitHub
- URL: https://github.com/norman/lua-devtools
- Owner: norman
- Created: 2009-08-18T18:34:11.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-08-18T18:42:36.000Z (over 16 years ago)
- Last Synced: 2025-05-06T21:33:37.617Z (8 months ago)
- Language: Lua
- Homepage:
- Size: 89.8 KB
- Stars: 15
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. Lua Devtools
This package provides a few tools to make your life as a Lua developer better. It's aimed primarily for use in projects where Lua it the primary language rather than embedded.
It contains:
* ilua - "A better interactive Lua command line":http://lua-users.org/wiki/InteractiveLua that prints return values as you go along (by Steve Donovan)
* debugger - A "command-line debugger":http://luaforge.net/projects/clidebugger/ with readline support (by Dave Nichols)
I am not the author of these tools, I only added readline support to the debugger and packaged them.
Since the original authors did not release their work under any license, this package is released under the "WTFPL":http://sam.zoy.org/wtfpl/.
h2. Usage
To install, clone this repository and do "luarocks make devtools-*.rockspec". I may eventually put the rockspec on Luaforge but I'm just banging this out in 10 minutes right now and it's not exactly polished yet.
h3. ilua
Just run @ilua@ from the command line.
h3. debugger
Inclue devtools.debugger in your Lua program and execute it on the command line. The @pause@ function will give control to the debugger, where you can then step through code, watch variables, etc.
require 'luarocks.require'
require 'devtools.debugger'
pause("this will pause and give control to the debugger")
print "hello world!"