【问题标题】:Automatically start debugger server when ZeroBrane startsZeroBrane 启动时自动启动调试器服务器
【发布时间】:2017-04-13 03:07:55
【问题描述】:

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

我已将 Lua 嵌入到 C++ 应用程序中。我想使用 ZeroBrane 调试 Lua 脚本。 C++ 应用程序启动 ZeroBrane,调用 mobdebug.start(),但随后用户必须手动转到 Project->Start Debugger Server。 ZeroBrane 是否可以配置为在 IDE 启动时启动服务器?

提前致谢,

【问题讨论】:

    标签: zerobrane


    【解决方案1】:

    好的,我想我解决了。我刚刚补充了:

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

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

    【讨论】:

    • 你不需要修改zbstudio/app.lua,因为它会在下次更新时被覆盖;你可以使用AutostartDebugger插件来做到这一点。
    猜你喜欢
    • 2013-12-25
    • 2020-11-28
    • 2016-04-28
    • 2017-08-06
    • 2019-08-23
    • 1970-01-01
    • 2016-05-24
    • 1970-01-01
    • 2016-09-08
    相关资源
    最近更新 更多