0.0
No commit activity in last 3 years
No release in over 3 years
Trace Ruby files.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.0.7, ~> 0.0
~> 1.9
~> 0.10.1
~> 10.0
~> 3.3.0
~> 0.19.1
 Project Readme

TraceFiles

Gem Version Dependency Status Build Status Coverage Status

Gem for tracing Ruby files.

require 'trace_files'

TraceFiles.set trace: [__FILE__]

Glob example.

require 'trace_files'

targets = Dir.glob(File.join(__dir__, '../lib/**/*.rb'))
targets.map! { |t| File.expand_path t }
puts "Tracing: #{targets}"

TraceFiles.set trace: targets

The TraceFiles.set method returns a TracePoint object.

trace_point = TraceFiles.set trace: [__FILE__], color: false
trace_point.disable
trace_point.enable
trace_point.enabled?