LuaLS / lua-language-server

A language server that offers Lua language support - programmed in Lua
https://luals.github.io
MIT License
3.35k stars 320 forks source link

Lua and Love2D debugging? #870

Closed Shadowblitz16 closed 2 years ago

Shadowblitz16 commented 2 years ago

Can you implement lua and love2d debugging?

sumneko commented 2 years ago

There are already many nice lua debuggers in market. I use this one: https://marketplace.visualstudio.com/items?itemName=actboy168.lua-debug

sewbacca commented 2 years ago

As of now this issue at the repository, sumneko pointed out, suggests that Love2D debugging is not supported. So I'm debugging Love2D like so.

sumneko commented 2 years ago

As of now this issue at the repository, sumneko pointed out, suggests that Love2D debugging is not supported. So I'm debugging Love2D like so.

This issue is opened in 2018, and now it has supported Lua 5.1, I have used it in my working Lua 5.1 project.

sewbacca commented 2 years ago

I tried debugging Love2D with lua-debug. Do you have any references on how to set it up?

sumneko commented 2 years ago

Oh, I forgot to tell you that current version has some bugs on Lua 5.1, the fixes have been commited but not released new version yet. Please wait for the new version, or you can compile the latest version by yourself.

lua-rocks commented 2 years ago

tomblind.local-lua-debugger-vscode works perfect with love:

screenshot

lua-rocks commented 2 years ago

I have a template repository where this debugger is already configured.