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

When started without breakpoints, only pauses code execution once #233

Open
vagoston opened this issue Jul 11, 2022 · 0 comments
Open

When started without breakpoints, only pauses code execution once #233

vagoston opened this issue Jul 11, 2022 · 0 comments

Comments

@vagoston
Copy link

Steps to reproduce:
You have to start rdebug-ide and attach with the IDE, but no breakpoints set yet. If you debug a simple loop, you can set a breakpoint after debugger started or you can pause. So far so good, but if you resume execution, you can't pause again, and breakpoints have no effect either.
Most likely this is a bug on debase side, https://github.com/ruby-debug/debase/blob/77040d792a68bb1f4b65bd009356182867b3dd96/lib/debase/rbx.rb#L14
Possible workaround:

      abs_prog_script = File.expand_path(Debugger::PROG_SCRIPT)
      # debase debug_load will misbehave if it's started without a breakpoint
      Debugger.add_breakpoint("debase_filler.rb", 1, nil) if Debugger.breakpoints.empty?
      bt = debug_load(abs_prog_script, options.stop, options.load_mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant