forked from tomblind/local-lua-debugger-vscode
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
I found this thread in the original repo and followed the instructions there on how to pull breakpoints but I'm still not able to get breakpoints added at runtime working.
Here's my launch.json:
"configurations": [
{
"type": "lua-local",
"request": "launch",
"name": "Debug Love2d",
"program": {
"command": "love",
},
"args": [
"_love2d",
"LOCAL_LUA_DEBUGGER_VSCODE"
],
"scriptRoots": [
"_love2d"
],
"pullBreakpointsSupport": true, // enabled support
}
]And my main.lua:
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
lldebugger = require("lldebugger")
lldebugger.start()
end
-- ... etc
function love.draw()
if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
lldebugger.pullBreakpoints()
end
-- ... etc
endIt looks like this repo's readme hasn't been updated to include the new flag, but based on commit 54262e5 I think this fork has the required changes?
Metadata
Metadata
Assignees
Labels
No labels