Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Longer stack traces in Julia

I'm trying to catch an elusive error in my Julia code, but it's not giving me enough of a stack trace to catch it. I'm used to using Chrome's tools for JavaScript and being able to get the full stack trace. How can I print the entire path taken through my Julia code so I can catch the bug?

I've tried using the backtrace function, but I don't know how to decipher the pointers I seem to be getting back from it.

[Ptr{Void} @0x000000010cbc6416,Ptr{Void} @0x000000010cb788ab...]

like image 222
Ryan Kennedy Avatar asked Aug 27 '26 13:08

Ryan Kennedy


1 Answers

Typically errors do give full stacktraces; if not, you've encountered a bug. What kind of error are you getting? What platform are you on?

If you have a backtrace, you can show it like this: Base.show_backtrace(STDOUT, bt).

like image 130
tholy Avatar answered Aug 30 '26 05:08

tholy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!