Project

General

Profile

Actions

Feature #16815

closed

Implement Fiber#backtrace

Added by ioquatix (Samuel Williams) over 1 year ago. Updated about 1 year ago.

Status:
Closed
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) over 1 year ago

  • Description updated (diff)

Use Thread#backtrace as example.

Updated by Eregon (Benoit Daloze) over 1 year 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) over 1 year ago

Accepted.

Matz.

Updated by ioquatix (Samuel Williams) over 1 year ago

  • Assignee set to ioquatix (Samuel Williams)

Updated by ioquatix (Samuel Williams) about 1 year ago

  • Status changed from Open to Closed

Okay, it was merged.

Actions

Also available in: Atom PDF