-
Notifications
You must be signed in to change notification settings - Fork 80
where/bt does not in fact give a backtrace #16
Comments
Please report OS and ruby version. I won't be able to look at this for awhile. Pull requests welcome in the meantime. |
CentOS/RHEL 5. ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] installed via rvm. Is this special to me, others aren't having this issue? |
+1 |
I've confirmed this is an issue in both 1.9s and was also an issue in ruby-debug19. Until I or someone else can get around to a proper fix, get your current stack with:
|
+1 up/down is also broken as there are no frames to navigate to. |
I'm not sure whether this is a bug or it is actually expected... I'll copy over an extract from the documentation which has helped me get more useful backtraces:
|
+1 |
Is there any walkaround to inspect the state of execution before catching a 'debugger' breakpoint? My problem is that I need to know what happened when an exception was raised, but 'up' command doen't work because there is no backtrace to climb... |
Could you give a concrete example of your problem? Have you tried post-mortem debugging? Have you tried the workaround I posted here? What ruby version are you using? Thanks. |
'where' used to segfault for me, as in #1.
That's fixed in 1.1.2/1.13, it doesn't segfault anymore.
But it doesn't actually give a stacktrace, it only gives the first line of a stack trace. A stacktrace is awfully useful. The first line of one, not so much.
In ruby-debug of yore,
where
/bt
would give me a complete backtrace, all the way up to root, same one that would be displayed from an exception that raised right there.The text was updated successfully, but these errors were encountered: