luascite

lua for windows


I'm trying to use "lua for windows" - SciTE Simply example such as Print("hello") I hit Alt + R (per tutorial instructions), everytime I do this I get: "Unable to debug program!" Anyone had this problem?


Solution

  • It works for me on XP 32-bit.

    I launched SciTE, opened a new document, typed print "hello, world." into line 1. Alt-R then prompted me to save the file before continuing. After saving it as foo.lua, the debugger started and line 1 was the current line. Clicking the Step button (or Alt+C) printed on the debug console as expected, and the debugger exited because there was no more program.

    I did this in Lua for Windows v5.1.4.23, which is no longer the most current version.

    I assume you've already checked all of the usual "is it plugged in" questions... you installed it normally, you have logged off and on again or rebooted sometime since the install, lua -v says something sensible, etc.

    C:\...>lua -v
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    
    C:\...>>
    

    Do try running the file manually by saving it to hello.lua and saying lua hello.lua to a command prompt.