Skip to content

Support Tarantool Lua debug #19

Closed

Description

@georgiy-belyanin

There is a Tarantool Lua Debugger extension allowing one to debug a Tarantool application from the Visual Studio Code. It'd nice to provide similar functionality within this extension.

Activity

  1. added
    question
    feature
    on Jun 5, 2025
  2. georgiy-belyanin commented on Jun 13, 2025

    @georgiy-belyanin
    MemberAuthor

    There is an official Tarantool debugger called tarantool-lua-debugger-vscode for Tarantool 2.x and earlier versions. It is available in the marketplace too.

    EmmyLuaDebugger also seems to work rather good with Tarantool. It offers the following features.

    • Breakpoints.
    • Step-by-step execution within the fiber.
    • Multiple files support.
    • Interacting with the local variables, console at the debug mode.

    It's been tested by me in VS Code.

    Though it needs a few fixes & hacks within the original implementation to work with Tarantool. I hope I have a chance to provide them later.

  3. georgiy-belyanin commented on Jun 14, 2025

    @georgiy-belyanin
    MemberAuthor

    It turned out the only problem I came across when tested EmmyLuaDebugger with Tarantool was caused by spurious wake ups. Probably they are specific to ARM64 or whatever. A PR with a fix has been created in the upstream repo: EmmyLua/EmmyLuaDebugger#75.

  4. added a commit that references this issue on Jun 14, 2025
    3dadb29
  5. georgiy-belyanin commented on Jun 20, 2025

    @georgiy-belyanin
    MemberAuthor

    After discussing this topic with @Totktonada it has been formulated that the debugger utility should be a part of the platform. It should be a TCP server implementing some popular debugging protocol (possibly DAP would be great). Possible interface might be as follows.

    local dbg = require('debugger')
    -- Start TCP debugger server.
    dbg.start('localhost:9966')
    dbg.stop()

    A separate config section can be handy too.

    debug:
      listen:
        - uri: 127.0.0.1:9966

    Since debugger is a really useful feature it needs an intermediate solution until the final is implemented within the platform. It can be shipped as c++ EmmyLuaDebugger library (either as a part of the VSCode-EmmyLua extension or with a few patches and builtin within the tarantool-vscode).

  6. added 2 commits that reference this issue on Oct 27, 2025
    c4c3168
    ca353d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurequestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions