<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>zignar.net » Lua</title>
    <link href="https://zignar.net/tags/lua/index.xml" rel="self" />
    <link href="https://zignar.net" />
    <id>https://zignar.net/tags/lua/index.xml</id>
    <author>
        <name>Mathias Fußenegger</name>
    </author>
    <updated>2025-06-23T00:00:00Z</updated>
    <entry>
      <title>The Debug Adapter Protocol is a REPL protocol in disguise</title>
      <link href="https://zignar.net/2025/06/23/debug-adapter-protocol-is-a-repl-protocol" />
      <id>https://zignar.net/2025/06/23/debug-adapter-protocol-is-a-repl-protocol</id>
      <published>2025-06-23T00:00:00Z</published>
      <updated>2025-06-23T00:00:00Z</updated>
      <summary type="html"><![CDATA[<p>A couple months back I created <a
href="https://codeberg.org/mfussenegger/nluarepl">nluarepl</a>. It’s a
REPL for the Neovim Lua interpreter with a little twist: It’s using the
Debug Adapter Protocol. And before that, I worked on <a
href="https://codeberg.org/mfussenegger/hprofdap">hprofdap</a>. Also a
kind of a REPL using DAP that lets you inspect Java heap dumps
(<code>.hprof</code> files) using OQL.</p>
<p>As the name might imply, a REPL isn’t the main use case for the Debug
Adapter Protocol (DAP). From the <a
href="https://microsoft.github.io/debug-adapter-protocol/">DAP
page</a>:</p>
<blockquote>
<p>The idea behind the Debug Adapter Protocol (DAP) is to abstract the
way how the debugging support of development tools communicates with
debuggers or runtimes into a protocol.</p>
</blockquote>
<p>But it works surprisingly well for a REPL interface to a language
interpreter too.</p>
]]></summary>
    </entry>
    <entry>
      <title>Debugging Lua in Neovim</title>
      <link href="https://zignar.net/2023/06/10/debugging-lua-in-neovim" />
      <id>https://zignar.net/2023/06/10/debugging-lua-in-neovim</id>
      <published>2023-06-10T00:00:00Z</published>
      <updated>2023-06-10T00:00:00Z</updated>
      <summary type="html"><![CDATA[<p>In this post I want to show you how you can debug Lua scripts with
Neovim and <a
href="https://codeberg.org/mfussenegger/nvim-dap">nvim-dap</a>. Both
regular Lua, but also Lua that uses Neovim as Lua interpreter. The
latter is interesting if you want to debug Neovim plugin test cases
written using <a
href="https://lunarmodules.github.io/busted/">busted</a></p>
]]></summary>
    </entry>
</feed>
