Replies: 2 comments 1 reply
-
Guys from dap.configurations.lua.extensionPath = vim.fn.expand('$MASON/share/local-lua-debugger-vscode/'), This way, when a process is started by It still doesn't solve the necessity to call On the bright side, default config could provide the option to debug Love2D projects only when it finds the |
Beta Was this translation helpful? Give feedback.
-
There's not enough interest from Love2D community. Closing this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The
local-lua-debugger-vscode
entry is the only DAP available for Lua via Mason, but neither Mason nor this repository provide config for it, so I wanted to send a PR.So far I've figured something like this starts the
love
project with 1 issue:The issue is that the user has to know to
require('lldebugger').start()
at the beginning of the debugged project, and what's even worse, thatlldebugger
provided bylocal-lua-debugger-vscode
is in a path that a debugged process can't really know about. It's not uncommon for debuggers to require some extra steps - e.g. PHP requires the user to modify theirphp.ini
to inject Xdebug hooks - so I'm guessing currently it's expected that the user makes their own research.outdated part - skip unless relevant
It'd be cool, though, if it was somehow solved by whatever provides the default config, though.Any thoughts on how (or where) to solve this?
So far, I've figured the default Mason DAP config for this debugger could come with a script like so:
Then all the user has to do is copy (or link) that script into their project and add
require('lldebug')
in theirmain.lua
. But ideally it'd just "magically happen" with zero effort from the user. Or at least the user was somehow informed they have to do extra steps.I asked on nvim-dap's discussions as well.
Cheers,
Cy
Beta Was this translation helpful? Give feedback.
All reactions