Skip to content

Set Breakpoint Rejected #43

Description

@seoushi

I'm trying to get debugging working in nvim-dap and I have it running and breaking on start but I can't set any breakpoints.

┃   [ DEBUG ] 2022-10-07T08:21:46Z-0700 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1  332 ]  "request" {
┃   arguments = {
┃     breakpoints = { {
┃         line = 25
┃       } },
┃     lines = { 25 },
┃     source = {
┃       name = "main.re",
┃       path = "/home/sean/repos/inulang/ocaml/inulang/bin/main.re"
┃     },
┃     sourceModified = false
┃   },
┃   command = "setBreakpoints",
┃   seq = 3,
┃   type = "request"
┃ }
┃ [ DEBUG ] 2022-10-07T08:21:46Z-0700 ] ...nvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:8  44 ] {
┃   body = {
┃     breakpoints = { {
┃         id = 1,
┃         verified = false
┃       } }
┃   },
┃   command = "setBreakpoints",
┃   request_seq = 3,
┃   seq = 7,
┃   success = true,
┃   type = "response"
┃ }

my dap configuration looks like this.

dap.adapters.ocamlearlybird = {
  type = "executable",
  command = "ocamlearlybird",
  name = "ocamlearlybird",
  args = {"debug"}
}

dap.configurations.reason = {
  {
    name = "reason",
    type = "ocamlearlybird",
    request = "launch",
    stopOnEntry = true,
    console = "integratedTerminal",
    yieldSteps = 4096,
    cwd = "${workspaceFolder}",
    arguments = {"compile",
                 "../../examples/test.inu",
                 "-o",
                 "_build/a.out",
                 "-v"},
    program = "${workspaceFolder}/_build/default/bin/main.bc",
    onlyDebugGlob = "<${workspaceFolder}/**/*>"
  }
}

Some of my package versions incase it's helpfull

earlybird                              1.1.0
reason                                 3.8.1
ocaml                                  4.11.2
uname -a
Linux 5.19.0-rc7-x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 25 20:49:50 PDT 2022 x86_64 AMD Ryzen 9 5950X 16-Core Processor AuthenticAMD GNU/Linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions