ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

Setting the irb_console configuration true has no effect #1062

Closed joe-sharp closed 9 months ago

joe-sharp commented 10 months ago

Your environment

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 commented 10 months ago

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