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)/


[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)/


[View source]
def context_lines : Int32 | Nil #

Number of lines of code context to capture, or nil for none.


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

Number of lines of code context to capture, or nil for none.


[View source]
def in_app_pattern : Regex #

Regex pattern matched against Backtrace::Frame#file.


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

Regex pattern matched against Backtrace::Frame#file.


[View source]
def line_filters #

[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/...).


[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/...).


[View source]
def src_path : String | Nil #

Used in #in_app_pattern.


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

Used in #in_app_pattern.


[View source]