diff options
author | Stan Lo <stan001212@gmail.com> | 2023-08-21 19:23:27 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-08-21 18:23:32 +0000 |
commit | ca6db02c2a305bc990c144439996abfe984a6c5a (patch) | |
tree | 35797e2cee5aea937b4c868a5bb7bcba738a8f8a /lib/irb/debug.rb | |
parent | 7d26c03267cf1be643963355fc52efde1574b37a (diff) | |
download | ruby-ca6db02c2a305bc990c144439996abfe984a6c5a.tar.gz |
[ruby/irb] Avoid overriding user's `irb_name` setting in debugger
integration
(https://github.com/ruby/irb/pull/688)
* Avoid overriding user's irb_name setting in debugger integration
Instead of always setting `irb_name` to `irb:rdbg`, it should respect
the user's setting and only append `:rdbg` to it.
* Introduce write_rc test helper
https://github.com/ruby/irb/commit/2ce7593351
Diffstat (limited to 'lib/irb/debug.rb')
-rw-r--r-- | lib/irb/debug.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/debug.rb b/lib/irb/debug.rb index dab9d1846a..f722822993 100644 --- a/lib/irb/debug.rb +++ b/lib/irb/debug.rb @@ -73,7 +73,7 @@ module IRB require 'irb/debug/ui' IRB.instance_variable_set(:@debugger_irb, irb) irb.context.with_debugger = true - irb.context.irb_name = "irb:rdbg" + irb.context.irb_name += ":rdbg" end def binding_irb? |