GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - atomicptr/mobdap: Debug adapter implementation for Lua / ModDebug

BranchesTags
Open more actions menu

Latest commit

 

History

57 Commits
57 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
dev/mobdap
dev/mobdap
 
 
resources
resources
 
 
scripts
scripts
 
 
src/mobdap
src/mobdap
 
 
test/mobdap
test/mobdap
 
 
.cljfmt.edn
.cljfmt.edn
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
project.clj
project.clj
 
 
run.sh
run.sh
 
 

Repository files navigation

mobdap

Debug adapter implementation for Lua / MobDebug

How it works

This application implements everything thats necessary for communicating with your editor using DAP via stdio and re-implements all the MobDebug server functionality, waiting for a client to hook into the server

Configuration

Your project

Download a copy of mobdebug.lua and put it somewhere into your project.

When you want to debug import it and call the start function:

-- perhaps hidden behind an env variable or whatever
if enable_debugger then
    local debugger = require "mobdebug"
    debugger.start("127.0.0.1", 8172) -- NOTE: the port here, this has to be the same as in your editor config
end

Editor

Neovim

local dap = require "dap"

dap.adapters.mobdap = {
    id = "mobdap",
    type = "executable",
    command = "/path/to/mobdap",
}

dap.configurations.lua = {
    {
        name = "MobDebug",
        type = "mobdap",
        request = "launch",

        -- these are the parameters you might want to configure

        -- rootdir: The path to your project root
        rootdir = function()
            return vim.fs.root(0, { ".git" })
        end,

        -- sourcedirs: (Optional) Alternative search dirs for dependencies
        sourcedirs = {
            "/home/USERNAME/.luarocks/share/lua/5.1",
        },

        -- port: (Optional: Defaults to 8172) the port on which the server is running
        --       Please configure the same on your client
        port = 8172,
    },
}

See also

  • Using mobdap with Defold: defold-mobdebug
  • Debugger integrated with Neovim for Defold: defold.nvim

License

GPLv3

About

Debug adapter implementation for Lua / ModDebug

Topics

dapdebug-adapterdebug-adapter-protocollualua-debuggerlua-languagemobdebug

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.