-
-
Save DmitriyLyalyuev/a4447f9bdba56ac4964e186072756158 to your computer and use it in GitHub Desktop.
gdb ruby backtrace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb | |
(gdb) file /opt/ruby-2.2.3/bin/ruby | |
(gdb) attach [pid] | |
# output of the C backtrace goes to the gdb console | |
(gdb) eval "backtrace" | |
# output of the Ruby application backtrace below goes to ruby stdout (rails logger?) | |
(gdb) call rb_backtrace() | |
(gdb) continue | |
(gdb) [ctrl-c] | |
(gdb) detach |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment