Collector.Source (collector v0.1.1)

Copy Markdown

Source lines around a frame, so Collector can show the failing line.

Releases ship no .ex files, so mix collector.package_source (run before mix release) stores the app's sources inside this package's priv. Without that file, sources are read from disk, which works in dev.

Summary

Functions

Five lines before and after line of file, or nil when unknown.

Loads packaged sources from path, replacing any loaded before.

Where mix collector.package_source writes by default.

Functions

context(file, line)

Five lines before and after line of file, or nil when unknown.

load(path)

Loads packaged sources from path, replacing any loaded before.

path()

Where mix collector.package_source writes by default.