Project

General

Profile

Feature #16815

Implement Fiber#backtrace

Added by ioquatix (Samuel Williams) 4 months ago. Updated 3 months ago.

Status:
Open
Priority:
Normal
Target version:
-
[ruby-core:98049]

Description

Previously discussed here: https://bugs.ruby-lang.org/issues/8215

Add a new method Fiber#backtrace. It would produce a backtrace similar to how Thread#backtrace works.

Updated by ioquatix (Samuel Williams) 4 months ago

  • Description updated (diff)

Use Thread#backtrace as example.

Updated by Eregon (Benoit Daloze) 4 months ago

I think this makes sense and can definitely be useful for debugging.

If called on a Fiber of another Thread, that might be slow on non-GIL implementations, but that's the same as Thread#backtrace so I think not really an issue.

Updated by matz (Yukihiro Matsumoto) 3 months ago

Accepted.

Matz.

Updated by ioquatix (Samuel Williams) 3 months ago

  • Assignee set to ioquatix (Samuel Williams)

Also available in: Atom PDF