Skip to content

allow interactive debugging in the CLI#5763

Merged
jakecoffman merged 1 commit intomainfrom
jakecoffman/cli-debugging
Oct 10, 2022
Merged

allow interactive debugging in the CLI#5763
jakecoffman merged 1 commit intomainfrom
jakecoffman/cli-debugging

Conversation

@jakecoffman
Copy link
Copy Markdown
Member

When running in the CLI with script/dependabot, this allows us to add debugger in the code and then invoke bin/run fetch_files --debug to start a debugging session once that line is hit.

@jakecoffman jakecoffman requested a review from a team as a code owner September 21, 2022 02:33
Copy link
Copy Markdown
Member

@jeffwidman jeffwidman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think byebug goes away in Ruby 3.1 with their new debug gem?

If you can afford to wait a day or two, let's use that instead as the breakpoint and I'll use this as a reminder to push #5447 over the line.

Happy to have a quick call if I'm misunderstanding the relationship between byebug and debug.

@mattt
Copy link
Copy Markdown
Contributor

mattt commented Sep 21, 2022

Agreed with what @jeffwidman said. I think we can wait for the Ruby 3.1 upgrade to use Ruby's built-in debug gem.

@jeffwidman
Copy link
Copy Markdown
Member

#5447 is merged, so this should be unblocked.

@jakecoffman jakecoffman merged commit f6f1da1 into main Oct 10, 2022
@jakecoffman jakecoffman deleted the jakecoffman/cli-debugging branch October 10, 2022 13:35
@pavera pavera mentioned this pull request Oct 31, 2022
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

Successfully merging this pull request may close these issues.

4 participants