# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #77674]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77674 >


<alksentrs> Question: If you've caught an exception, how do you print
a backtrace? (I've managed to get either infinite looping or error
message only)
<masak> alksentrs: try/CATCH is seriously b0rk. :(
<alksentrs> masak: Ah. Never mind.
<masak> rakudo: try { no-such-sub(42) }; say $!
<p6eval> rakudo ff5b4c: OUTPUT«Could not find sub &no-such-sub␤»
<masak> rakudo: try { no-such-sub(42) }; say $!.backtrace
<p6eval> rakudo ff5b4c: OUTPUT«Method 'backtrace' not found for
invocant of class 'Perl6Exception' [...]
* masak submits rakudobug

Reply via email to