OVERVIEW

Project pask
Homepage https://github.com/robgleeson/pask
Build Build Status

DESCRIPTION

pask is a concurrent tracer written with the power of Thread#set_trace_func.

EXAMPLES

tracer = Pask.new
tracer.trace { Person.call }
event1 = tracer.start # the event for "Person.call called"
event2 = tracer.resume # the event for "Person.call returned"
event3 = tracer.resume # returns nil (no more code to trace)

REPL IN YO TRACER

pask produces instance's of Pask::Event when it traces code. an event is returned to the caller and opens up some exciting possibilities(due to the wonders of Binding):

def call
  x = 1
  p x
end

tracer = Pask.new
tracer.trace { Person.call }
event1 = tracer.start
event.binding.pry # start pry inside 'call', before assignment of x.

RUBIES

  • MRI
    • 1.9.2
    • 1.9.3
    • 2.0.0
    • 2.1.0
    • 2.1.0+

CONTRIBUTE!

fork it, clone it, change!
open a pull request :)

some tips for working on the project:

cd $CLONED_DIR
bundle install
rake test # run tests

INSTALL

$ gem install pask

SEE ALSO

LICENSE

see UNLICENSE.txt. public domain.