Backtracing in concurrent environment

Out of interest: Has anybody implemented a debug feature that shows either:

a) the entire call tree
b) a linear backtrace, but traversing all the parent threads all the way up to the main thread?

1 Like

I did b) in Edh, but this feature still in an unreleased branch.

Đ: 
Đ: {
Đ|  1: 
Đ|  2:   method f() {
Đ|  3:     console.info<| '' ++ Exception( "I'm so called: " )
Đ|  4:   }
Đ|  5: 
Đ|  6:   method g() {
Đ|  7:     go f()
Đ|  8:   }
Đ|  9: 
Đ| 10:   go g()
Đ| 11: 
Đ| 12: }
Đ: ℹī¸ <console>:3:5
Đ
📜 module:/edh_modules/repl 🔎 /edh_modules/repl/__main__.edh:1:1 👈 <genesis>:1:1
📜 module:/edh_modules/repl 🔎 /edh_modules/repl/__main__.edh:1:1 👈 <genesis>:1:1
📜 g 🔎 <console>:6:14 👈 <console>:10:3
📜 f 🔎 <console>:2:14 👈 <console>:7:5
👉 <console>:3:5
I'm so called: 

Đ:

I made https://github.com/Tronic/trio-web-monitor