Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Breakpoint Rejected #43

Open
seoushi opened this issue Oct 7, 2022 · 0 comments
Open

Set Breakpoint Rejected #43

seoushi opened this issue Oct 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@seoushi
Copy link

seoushi commented Oct 7, 2022

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
@sim642 sim642 added the bug Something isn't working label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants