ZeroBrane Studio provides a Lua console (both local to execute commands in the IDE and remote to execute them in the context of the client application). You can also modify variables in the application and get values pretty printed (including complex hierarchical data). The IDE does come with the debugger, Stack and Watch views and auto-completion.
The code for the console is available on GitHub, but for remote execution it mostly relies on capabilities provided by the debugger (MobDebug). If you want to integrate something like this in your application, then the source file I referenced may be a good starting point.
您尚未指定平台,因此我将提出一些针对 Windows 的建议,并将其他平台和/或平台可移植性留给其他答案。
首先,从 Lua for Windows 捆绑安装开始。这为您提供了 Lua 解释器以及各种有用且有趣的模块,这些模块都是一致构建的并且已知可以在 Windows 上运行。它还为您提供了 SciTE 编辑器,其中包含 Lua 代码着色、库函数的一些上下文帮助、以及一个集成的调试器,可以开箱即用地调试 Lua 程序。
GNU Emacs 和 vim。最近版本的 vim 也可以在 Lua 中编写脚本(可能在配置插件之后)。
You haven't specified a platform so I'll make some suggestions that are focused on Windows and leave other platforms and/or platform portability for other answers.
First, start with the Lua for Windows bundled installation. That gives you the Lua interpreter along with an assortment of useful and interesting modules that are all built consistently and known to work on Windows. It also gives you the SciTE editor which has code coloring for Lua, some context help for library functions, and an integrated debugger that can debug Lua programs out of the box.
There has been work on an Eclipseplugin for Lua to add syntax coloring. Debugging support is certainly possible, but I don't know its current status.
There are Lua coloring plugins for both GNU Emacs and vim. Recent releases of vim are scriptable in Lua as well (possibly after configuring a plugin).
发布评论
评论(5)
ZeroBrane Studio 提供了一个 Lua 控制台(既可以在本地执行 IDE 中的命令,也可以远程在 IDE 的上下文中执行命令)客户端应用程序)。您还可以修改应用程序中的变量并获取值漂亮的打印(包括复杂的分层数据)。 IDE 确实带有调试器、堆栈和监视视图以及自动完成功能。
控制台代码可在 GitHub 上找到,但是对于远程执行,它主要依赖于调试器(MobDebug)提供的功能。如果您想将类似的东西集成到您的应用程序中,那么我引用的源文件可能是一个很好的起点。
ZeroBrane Studio provides a Lua console (both local to execute commands in the IDE and remote to execute them in the context of the client application). You can also modify variables in the application and get values pretty printed (including complex hierarchical data). The IDE does come with the debugger, Stack and Watch views and auto-completion.
The code for the console is available on GitHub, but for remote execution it mostly relies on capabilities provided by the debugger (MobDebug). If you want to integrate something like this in your application, then the source file I referenced may be a good starting point.
通常的竞争者是:
您还可以使用 IDE 插件:
The usual contenders are:
You can also go with IDE plugins:
我开发的 IntelliJ Lua 插件除了许多其他功能之外还包含 2 个解释器 UI。
以下是解释器 UI 之一的截屏: http://www.screencast.com/t/0f262SeCKmqT
另一个如下图所示。
IntelliJ IDEA 的 Lua。 https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/首页
功能:
The Lua plugin for IntelliJ that I developed contains 2 interpreter UI's in addition to a host of other features.
Here is a screencast of one of the interpreter UI's: http://www.screencast.com/t/0f262SeCKmqT
The other is in the image below.
Lua for IntelliJ IDEA. https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home
Features:
您尚未指定平台,因此我将提出一些针对 Windows 的建议,并将其他平台和/或平台可移植性留给其他答案。
首先,从 Lua for Windows 捆绑安装开始。这为您提供了 Lua 解释器以及各种有用且有趣的模块,这些模块都是一致构建的并且已知可以在 Windows 上运行。它还为您提供了 SciTE 编辑器,其中包含 Lua 代码着色、库函数的一些上下文帮助、以及一个集成的调试器,可以开箱即用地调试 Lua 程序。
已经有关于 Eclipse Lua 插件 添加语法着色。调试支持当然是可能的,但我不知道它的当前状态。
GNU Emacs 和 vim。最近版本的 vim 也可以在 Lua 中编写脚本(可能在配置插件之后)。
You haven't specified a platform so I'll make some suggestions that are focused on Windows and leave other platforms and/or platform portability for other answers.
First, start with the Lua for Windows bundled installation. That gives you the Lua interpreter along with an assortment of useful and interesting modules that are all built consistently and known to work on Windows. It also gives you the SciTE editor which has code coloring for Lua, some context help for library functions, and an integrated debugger that can debug Lua programs out of the box.
There has been work on an Eclipse plugin for Lua to add syntax coloring. Debugging support is certainly possible, but I don't know its current status.
There are Lua coloring plugins for both GNU Emacs and vim. Recent releases of vim are scriptable in Lua as well (possibly after configuring a plugin).
标准 lua shell 也有这样的改进: https://github.com/ilua/ilua
There is also this improvement to the standard lua shell: https://github.com/ilua/ilua