MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger

github.com/EmmyLua/EmmyLuaDebugger @1.9.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.9.2 ↗ · + Follow
9,748 symbols 31,299 edges 803 files 1,993 documented · 20% updated 41d ago1.9.2 · 2026-06-03★ 2498 open issues

Browse by type

Functions 8,365 Types & classes 1,383
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🚀 EmmyLua Debugger

Build Status Lua Version

High-performance cross-platform Lua debugger with full debugging features including breakpoints, variable watch, stack trace, and more.


✨ Features

  • 🎯 Full Debugging Features - Breakpoints, step execution, variable watch, stack trace
  • 🌍 Cross-Platform Support - Windows, macOS, Linux
  • High Performance - Efficient debugging communication based on TCP protocol
  • 🔧 Easy Integration - Supports multiple Lua versions and game engine integration

🎮 Supported Platforms

Platform Status Notes
Windows x64 Fully supported
macOS Intel & Apple Silicon
Linux any

🔧 Lua Support

Lua Version Status Notes
Lua 5.1 Fully supported
Lua 5.2 Fully supported
Lua 5.3 Fully supported
Lua 5.4 Fully supported
Lua 5.5 Fully supported
LuaJIT Fully supported

🚀 Quick Start

1. Clone the Repository

git clone https://github.com/EmmyLua/EmmyLuaDebugger.git
cd EmmyLuaDebugger

2. Build the Project

Windows (Visual Studio)

mkdir build
cd build
cmake .. -DEMMY_LUA_VERSION=54
cmake --build . --config Release

macOS/Linux

mkdir build
cd build
cmake .. -DEMMY_LUA_VERSION=54 -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release

3. Basic Usage

Integrate the debugger in your Lua code:

-- Load the debugger module
local dbg = require('emmy_core')

-- Start the TCP debug server
dbg.tcpListen('localhost', 9966)

-- Wait for IDE connection
dbg.waitIDE()

-- Set a strong breakpoint here
dbg.breakHere()

-- Your Lua code
print("Hello, EmmyLua Debugger!")

Connect the debugger in your IDE:

  1. Open an IDE that supports EmmyLua (e.g., IntelliJ IDEA + EmmyLua plugin)
  2. Configure the debug connection: TCP Connect mode, address localhost:9966
  3. Click to start debugging
  4. Set breakpoints in your code and enjoy debugging!

📚 Documentation

🛠️ Build Options

Option Default Description
EMMY_LUA_VERSION 55 Lua version (51/52/53/54/55/jit)
EMMY_USE_LUA_SOURCE OFF Whether to build with Lua source

Advanced Build Examples

# Build for a specific version
cmake .. -DEMMY_LUA_VERSION=55
# Build using Lua source
cmake .. -DEMMY_USE_LUA_SOURCE=ON

Development Environment Setup

  1. Install required build tools:

    • Windows: Visual Studio 2019+
    • macOS: Xcode + Command Line Tools
    • Linux: GCC 7+ or Clang 6+
  2. Install CMake 3.11+

  3. Clone and build the project: bash git clone --recursive https://github.com/EmmyLua/EmmyLuaDebugger.git cd EmmyLuaDebugger mkdir build && cd build cmake .. cmake --build .

🙏 Acknowledgements

  • libuv - Cross-platform asynchronous I/O library
  • nlohmann/json - Modern C++ JSON library
  • Lua - Powerful embedded scripting language

📞 Support & Contact


⭐ If you find this project helpful, please give us a Star! ⭐

Made with ❤️ by EmmyLua Team

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 7,932
Class 1,295
Method 433
Enum 75
Interface 13

Languages

C84%
C++16%
TypeScript1%
Python1%

Modules by API surface

third-party/lua-5.5.0/src/lparser.c112 symbols
third-party/lua-5.5.0/src/lcode.c108 symbols
third-party/libuv-1.46.0/src/win/fs.c106 symbols
third-party/lua-5.4.6/src/lcode.c103 symbols
third-party/nlohmann/include/nlohmann/json.hpp102 symbols
third-party/lua-5.4.6/src/lparser.c101 symbols
third-party/lua-5.5.0/src/lapi.c97 symbols
third-party/lua-5.4.6/src/lapi.c94 symbols
third-party/lua-5.2.4/src/lparser.c92 symbols
third-party/libuv-1.46.0/src/unix/linux.c92 symbols
third-party/lua-5.3.5/src/lparser.c91 symbols
third-party/lua-5.3.5/src/lapi.c86 symbols

For agents

$ claude mcp add EmmyLuaDebugger \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page