Camelia

class Backtrace::Frame

src
    class Backtrace::Frame { }

 
A single backtrace frame. It identifies a location in the source code.

Methods

file

    method file(Backtrace::Frame:D) returns Str

 
Returns the file name.

line

    method line(Backtrace::Frame:D) returns Int

 
Returns the line number (line numbers start to count from 1).

code

    method code(Backtrace::Frame:D)

 
Returns the code object into which .file and .line point, if avaialble.

subname

    method subname(Backtrace::Frame:D) returns Str

 
Returns the name of the enclosing subroutine.

is-hidden

    method is-hidden(Backtrace::Frame:D) return Bool:D

 
Returns True if the frame is marked as hidden with the is hidden_from_backtrace trait.

is-routine

    method is-routine(Backtrace::Frame:D) return Bool:D

 
Return True if the frame point into a routine (and not into a mere L<Block>).

is-setting

    method is-setting(Backtrace::Frame:D) return Bool:D

 
Returns True if the frame is part of a setting.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: