2017-04-12 139 views
1

如何让ZeroBrane在启动时自动启动调试服务器?当ZeroBrane启动时自动启动调试服务器

我在C++应用程序中嵌入了Lua。我想用ZeroBrane调试Lua脚本。 C++应用程序启动ZeroBrane,调用mobdebug.start(),但用户必须手动进入Project-> Start Debugger Server。可以配置ZeroBrane,以便在IDE启动时启动服务器?

在此先感谢,

回答

0

好吧,我想我解决了它。我只是说:

local debugger = ide:GetDebugger() 
debugger:Listen(true) 

postinit = function()内的zbstudio/app.lua文件。

+1

您不需要修改zbstudio/app.lua,因为它将在下次更新时被覆盖;您可以使用[AutostartDebugger](https://github.com/pkulchenko/ZeroBranePackage/blob/master/autostartdebug.lua)插件来执行此操作。 –

相关问题