Skip to content

Commit ae8c052

Browse files
committed
list used environment variables
1 parent a4c58f3 commit ae8c052

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,14 @@ config set no_color true
506506
* OBSOLETE
507507
* `RUBY_DEBUG_PARENT_ON_FORK` (`parent_on_fork`): Keep debugging parent process on fork (default: false)
508508

509+
There are other environment variables:
510+
511+
* `NO_COLOR`: If the value is set, set `RUBY_DEBUG_NO_COLOR` ([NO_COLOR: disabling ANSI color output in various Unix commands](https://no-color.org/)).
512+
* `RUBY_DEBUG_ENABLE`: If the value is `0`, do not enable debug.gem feature.
513+
* `RUBY_DEBUG_ADDED_RUBYOPT`: Remove this value from `RUBYOPT` at first. This feature helps loading debug.gem with `RUBYOPT='-r debug/...'` and you don't want to derive it to child processes. In this case you can set `RUBY_DEBUG_ADDED_RUBYOPT='-r debug/...'` (same value) and this string will be deleted from `RUBYOPT` at first.
514+
* `RUBY_DEBUG_EDITOR` or `EDITOR`: An editor used by `edit` debug command.
515+
* `RUBY_DEBUG_BB`: Define `Kernel#bb` method which is alias of `Kernel#debugger`.
516+
509517
### Initial scripts
510518

511519
If there is `~/.rdbgrc`, the file is loaded as an initial script (which contains debug commands) when the debug session is started.

misc/README.md.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,14 @@ config set no_color true
469469
* <%= $1 %>
470470
<% cat = $1; end %> * `<%= env %>` (`<%= key %>`): <%= default ? "#{$2} (default: #{default})" : $2 %><% end %>
471471

472+
There are other environment variables:
473+
474+
* `NO_COLOR`: If the value is set, set `RUBY_DEBUG_NO_COLOR` ([NO_COLOR: disabling ANSI color output in various Unix commands](https://no-color.org/)).
475+
* `RUBY_DEBUG_ENABLE`: If the value is `0`, do not enable debug.gem feature.
476+
* `RUBY_DEBUG_ADDED_RUBYOPT`: Remove this value from `RUBYOPT` at first. This feature helps loading debug.gem with `RUBYOPT='-r debug/...'` and you don't want to derive it to child processes. In this case you can set `RUBY_DEBUG_ADDED_RUBYOPT='-r debug/...'` (same value) and this string will be deleted from `RUBYOPT` at first.
477+
* `RUBY_DEBUG_EDITOR` or `EDITOR`: An editor used by `edit` debug command.
478+
* `RUBY_DEBUG_BB`: Define `Kernel#bb` method which is alias of `Kernel#debugger`.
479+
472480
### Initial scripts
473481

474482
If there is `~/.rdbgrc`, the file is loaded as an initial script (which contains debug commands) when the debug session is started.

0 commit comments

Comments
 (0)