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

Setting the irb_console configuration true has no effect #1062

Closed
joe-sharp opened this issue Jan 17, 2024 · 1 comment
Closed

Setting the irb_console configuration true has no effect #1062

joe-sharp opened this issue Jan 17, 2024 · 1 comment

Comments

@joe-sharp
Copy link

joe-sharp commented Jan 17, 2024

Your environment

  • ruby -v: 3.2.2 (also tested at 3.1.4p223, 3.0.6p216, and even 2.7.8p225)
  • rdbg -v: 1.9.1
  • irb -v: 1.11.1

Describe the bug
Setting the irb_console to true has no effect, and the environment variable RUBY_DEBUG_IRB_CONSOLE must be used to have rdbg and its breakpoint always start the user out with the irb:rdbg console.

To Reproduce

Expected behavior
I didn't expect that setting the configuration inside the REPL would take immediate effect so I created a ~/.rdbgrc file with a single line:

config set irb_console true

I would expect that hitting a debugger breakpoint or using the rdbg command would invoke the irb:rdgb console. To achieve the behavior I expect, I set the RUBY_DEBUG_IRB_CONSOLE env var to true in my ~/.zshenv instead.

Additional context
I do see the following message print after creating the ~/.rdbgrc file:

(rdbg:/Users/joesharp/.rdbgrc) config set irb_console true
irb_console = true                 # UI: Use IRB as the console (default: false)

Checking config irb_console shows the same line.

@st0012
Copy link
Member

st0012 commented Jan 17, 2024

Thanks for reporting! I opened #1057 to address this.

@ko1 ko1 closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants