class

Backtracer::Configuration

Inherits Reference < Object

Constants

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 methods

app_dirs_pattern

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?

Source
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?

Source
context_lines

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

See Frame#context

Source
context_lines=(context_lines : Int32 | Nil)

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

See Frame#context

Source
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.

Source
modules_path_pattern

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

See Frame#shard_name

Source
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

Source
src_path

Path considered as "root" of your project.

See Frame#under_src_path?

Source
src_path=(src_path : String | Nil)

Path considered as "root" of your project.

See Frame#under_src_path?

Source