Skip to content

Breakpoint pulling not working #21

@SHiLLySiT

Description

@SHiLLySiT

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
end

It 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions