summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-08-15 13:48:58 +0900
committerGitHub <noreply@github.com>2019-08-15 13:48:58 +0900
commit53a55aeff3d409b4894d077f2b3b874fac53e387 (patch)
tree53fbb9e4b71206f521ef31cad981dc2241566644 /defs
parent132b7eb104ed2f5d9966adb2f0edacb2406f40fb (diff)
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.
Notes
Notes: Merged-By: ko1
Diffstat (limited to 'defs')
0 files changed, 0 insertions, 0 deletions