I forgot to mention the url: https://github.com/garysweaver/autolog
It's now a lot more like Tracer and can take blocks, and is available on main as method and Object as class method: autolog :methods do #... end I put the LocalJumpError up on stackoverflow if anyone wants to help. I think it is matter of something not checking if block is given, but I'm doing it now everywhere in my code, so I think it might somehow be a Rails 3.2.8 dependency loading issue, but I'm probably incredibly wrong and should be smacked in the leg with a wooden paddle for saying that. Please try my gem and see its new code before just looking at the stackoverflow post or attempting to guess based on stacktrace, unless you're feeling lucky: http://stackoverflow.com/questions/12942505/why-does-using-set-trace-func-work-in-some-places-but-cause-unexpected-return-l Thanks everyone. On Wednesday, October 17, 2012 2:28:19 PM UTC-4, Gary Weaver wrote: > > If it helps anyone developing Rails, apps, or gems, I wrote a shortcut for > set_trace_func, so next time you want to just add a line before and after > some function you are trying to debug you can have Ruby temporarily output > every line, method, etc. executed. Also, it lets you define the format, use > other loggers, etc. via a proc/lambda define, since you might not like the > default format. Apologize for posting here if it wouldn't help with Rails > development (you are probably using a real debugger). > > Example: > > In Gemfile add: > gem 'autolog' > > Around some part of code add this before: > Autolog.methods > and this after: > Autolog.off > > Hope it helps someone who needs a quick tool periodically without all the > time sink of profiling or setting a breakpoint and debugging in a slow IDE. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/7hC1f0hDdWwJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
