Skip to content

Breakpoints ignored without binding.b at start of script #15

Description

@rnestler

If I don't have a binding.b at the start of my script, all further breakpoints are just ignored and just the whole script runs:

With binding.b

screenshot-20220628-113735

Without binding.b

screenshot-20220628-113804

I guess the reason is that rdbg is started with the -n flag which means it won't break at the start:

args = {"-n", "--open", "--port", config.port, "-c", "--", "bundle", "exec", config.command, config.script}
else
args = {"-n", "--open", "--port", config.port, "-c", "--", config.command, config.script}

Activity

  1. linked a pull request that will close this issueremove '-n' option when debug current file (#15) #16on Jul 3, 2022
  2. added a commit that references this issue on Jul 3, 2022
  3. reopened this on Jul 3, 2022
  4. suketa commented on Jul 3, 2022

    @suketa
    Owner

    Thank you for your information.

    fixed by #16.
    Could you try the lates version?

  5. olimorris commented on Jul 3, 2022

    @olimorris
    Contributor

    Ahhh this really messes things up for me. Basically means I have an infinite amount of steps to step over if I'm in anything remotely complex. Previously, it only stopped on my breakpoint. Now it stops right from execution. Unless I'm missing an obvious skip to breakpoint command...

    Screen Shot 2022-07-03 at 15 01 49

  6. rnestler commented on Jul 3, 2022

    @rnestler
    Author

    Unless I'm missing an obvious skip to breakpoint command...

    Well try c for continue?

  7. suketa commented on Jul 4, 2022

    @suketa
    Owner

    Could you try :lua require'dap'.continue() again or bind key :lua require'dap'.continue() yourself?

  8. rnestler commented on Jul 4, 2022

    @rnestler
    Author

    Could you try the lates version?

    Now I have really strange behavior (but it may also be due to another update):

    • I add two breakpoints and start with :lua require'dap'.continue()
    • It will break on the first breakpoint I set, but then hide all the breakpoint
    • When I continue again it will also break at the second (now invisible breakpoint)
    • When I try to start it again it will fail to start with couldn't connect to 127.0.0.1:38698: ECONNREFUSED

    How can I debug this further?

  9. exosyphon commented on Jun 15, 2023

    @exosyphon

    I am having a similar issue when I try to debug a spec file, where it will stop on the first line but then not hit any breakpoints or binding.b if I continue

    I don't see anything in DapShowLogs with setting to TRACE. Is there anything else I can do to debug this?

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions