dibyendumajumdar / ravi-vscode-debugger

VSCode Debug Adapter for Ravi / Lua 5.3
13 stars 1 forks source link

Löve2D #1

Open tangorri opened 8 years ago

tangorri commented 8 years ago

Hi, and thanks for this debugger. Cause I can't imagine making great apps without debugger. I'm not really familiar with Lua world actually but I would like to know if there is a way to debug LÖVE2D application using ravi debugger ?

dibyendumajumdar commented 8 years ago

Hi, I don't believe that this is possible. I don't know much about LÖVE2D but from a brief look it appears that this app relies upon LuaJIT. My debugger uses a modified version of Lua 5.3.

karai17 commented 8 years ago

LOVE uses LuaJIT 2.0.4, but can be swapped out for Lua 5.1 if one is so inclined.

shakesoda commented 8 years ago

Technically, LOVE also compiles against Lua 5.3, but it'll break a lot of programs and have a huge performance penalty.

dibyendumajumdar commented 8 years ago

Most of the debugger is portable but some modifications are necessary to the default Lua VM. It is possible to port the debugger to Lua 5.1, but I suspect for apps like LÖVE2D you would also need the ability to attach to a running program - this is possible to do but not yet implemented. I have no idea whether the debugger can be implemented over LuaJIT as I am not sure whether LuaJIT fully implements all the debugger capabilities.

ianfitzpatrick commented 8 years ago

I will just +1 this, if someone figures out how to get this going for Love2D it would be amazing.

dibyendumajumdar commented 8 years ago

I will add Lua 5.1 support in the debugger sometime before the end of the year (cannot promise an exact date as I have a full schedule right now). I hope that will enable use in Love2D - unfortunately I do not have the time/bandwidth to check Love2D myself.