Skip to content

OmegaWareProjects/Love2D-Debug-Patcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Love2D Debug Patcher

This application attempts to patch Love2D/Löve game executables to inject Local Lua Debugger (lldebugger) initialization code into main.lua, enabling VS Code debugging of the Lua game code.

Usage

  1. Build the project using xmake or download a pre-built executable from the Releases.
  2. Run the resulting executable, providing a Love2D game executable as an argument or by drag-and-drop.
  3. The tool will generate:
    • A patched executable with debugger initialization code injected.
    • An extracted version of the Love2D runtime.
    • A game/ folder containing all Lua and asset files.
    • A .vscode/launch.json file with debug configurations.
  4. Install the Local Lua Debugger extension in VS Code.
  5. Open the project (The game directory) in VS Code and use the provided launch configurations to debug the game. (I recommend "Debug Balatro Love" for source editing and breakpoints.)

Requirements

  • C++20 compatible compiler.
  • xmake build system.
  • Love2D game executable to patch.

License

GPL-3.0 License. See LICENSE for details.

Acknowledgements

About

Patch Love2D game binaries to init lldebugger

Resources

License

Stars

Watchers

Forks

Packages

No packages published