class Backtracer::Configuration

Defined in:

backtracer/configuration.cr

Constant Summary

LINE_PATTERNS = {/^(?<file>[^:]+)(?:\:(?<line>\d+)(?:\:(?<col>\d+))?)? in '\*?(?<method>.*?)'(?: at #{ADDR_FORMAT})?$/, /^(?<method>~[^@]+)@(?<file>[^:]+)(?:\:(?<line>\d+))(?: at #{ADDR_FORMAT})?$/, /^\[#{ADDR_FORMAT}\] \*?(?<method>.*?) \+\d+(?: \((?<times>\d+) times\))?$/, /^(?<method>.+?)$/}

Instance Method Summary

Instance Method Detail

def app_dirs_pattern : Regex #

Directories to be recognized as part of your app. e.g. if you have an engines dir at the root of your project, you may want to set this to something like /^(src|engines)\//

See Frame#in_app?


[View source]
def app_dirs_pattern=(app_dirs_pattern : Regex) #

Directories to be recognized as part of your app. e.g. if you have an engines dir at the root of your project, you may want to set this to something like /^(src|engines)\//

See Frame#in_app?


[View source]
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 modules_path_pattern : Regex #

Path pattern matching directories to be recognized as your app modules. Defaults to standard Shards setup (lib/shard-name/...).

See Frame#shard_name


[View source]
def modules_path_pattern=(modules_path_pattern : Regex) #

Path pattern matching directories to be recognized as your app modules. Defaults to standard Shards setup (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]