class Backtracer::Configuration

Defined in:

amber/support/backtracer/configuration.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.ignored_line?(line : String) : Bool #

Returns true for a frame of the exception machinery itself.


[View source]

Instance Method Detail

def context_lines : Int32 | Nil #

Number of lines of code context to return by default, or nil for none.

See Frame#context


[View source]
def context_lines=(context_lines : Int32 | Nil) #

Number of lines of code context to return by default, or nil for none.

See Frame#context


[View source]
def line_filters #

Array of procs used for filtering backtrace lines before parsing. Each filter is expected to return a string, which is then passed onto the next filter, or ignored althoghether if nil is returned.


[View source]
def list_of_app_directories : Array(String) #

Path prefixes of the directories that are part of your app. If you have an engines directory at the root of your project, add "engines/".

See Frame#in_app?


[View source]
def list_of_app_directories=(list_of_app_directories : Array(String)) #

Path prefixes of the directories that are part of your app. If you have an engines directory at the root of your project, add "engines/".

See Frame#in_app?


[View source]
def modules_directory : String #

Path prefix of the directory that holds shards, lib/<shard-name>/....

See Frame#shard_name


[View source]
def modules_directory=(modules_directory : String) #

Path prefix of the directory that holds shards, lib/<shard-name>/....

See Frame#shard_name


[View source]
def src_path : String | Nil #

Path considered as "root" of your project.

See Frame#under_src_path?


[View source]
def src_path=(src_path : String | Nil) #

Path considered as "root" of your project.

See Frame#under_src_path?


[View source]