Defold MobDebug
August 2, 2025 · View on GitHub
A Defold library that allows you to debug your games using external editors with MobDebug
An example of running the included demo project with Neovim:

Installation
Open your game.project file and add the following line to your dependencies under the project section:
https://github.com/atomicptr/defold-mobdebug/archive/refs/heads/master.zip
After that, select Project ▸ Fetch Libraries to fetch & update your libraries.
Next in your primary collection (usually main/main.collection), right click the collection and hit Add Game Object File

And now select the debugger.go

And lastly enable (and perhaps change the port of) the debugger

Note: You can not use the MobDebug default port 8172, because the Defold editor itself uses that for the builtin debugger
Debug Adapter Protocol
If your editor supports the Debug Adapter Protocol (or DAP), you can use my other project mobdap
Recommended Editor Plugins
- Neovim: defold.nvim
License
MIT