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

allow interactive debugging in the CLI #5763

Merged
merged 1 commit into from
Oct 10, 2022
Merged

Conversation

jakecoffman
Copy link
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
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
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
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.

None yet

4 participants