diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-08-15 13:48:58 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-15 13:48:58 +0900 |
commit | 53a55aeff3d409b4894d077f2b3b874fac53e387 (patch) | |
tree | 53fbb9e4b71206f521ef31cad981dc2241566644 /defs | |
parent | 132b7eb104ed2f5d9966adb2f0edacb2406f40fb (diff) | |
download | ruby-53a55aeff3d409b4894d077f2b3b874fac53e387.tar.gz |
introduce RUBY_ON_BUG envval. (#2331)
`rb_bug()` is called at critical bug, MRI can't run anymore.
To make debug easy, this patch introduces RUBY_ON_BUG environment
variable to specify the process which is called with pid.
[Feature #16090] [GH #2331]
RUBY_ON_BUG='gdb -p' ruby xxx.rb
In this case, if ruby interpreter causes critical bug, and call
rb_bug(), then "gdb -p [PID]' is called by system(3). You can
debug on invoked gdb.
This feature is limited on RUBY_DEVEL build.
Diffstat (limited to 'defs')
0 files changed, 0 insertions, 0 deletions