Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
autolog: easily debug-like logging on the fly in your Rails app
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
gsw  
View profile  
 More options Oct 17 2012, 2:32 pm
From: gsw <garyswea...@gmail.com>
Date: Wed, 17 Oct 2012 11:32:47 -0700 (PDT)
Local: Wed, Oct 17 2012 2:32 pm
Subject: autolog: easily debug-like logging on the fly in your Rails app

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- maybe you
are 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gsw  
View profile  
 More options Oct 18 2012, 3:51 pm
From: gsw <garyswea...@gmail.com>
Date: Thu, 18 Oct 2012 12:51:01 -0700 (PDT)
Local: Thurs, Oct 18 2012 3:51 pm
Subject: Re: autolog: easily debug-like logging on the fly in your Rails app

Gem changed a lot from yesterday. It's a little more like Tracer now:
https://github.com/garysweaver/autolog


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gsw  
View profile  
 More options Oct 19 2012, 4:36 pm
From: gsw <garyswea...@gmail.com>
Date: Fri, 19 Oct 2012 13:36:37 -0700 (PDT)
Local: Fri, Oct 19 2012 4:36 pm
Subject: Re: autolog: easily debug-like logging on the fly in your Rails app

autolog v0.2.0 released. didn't have autolog method on Object's eigenclass,
which meant it wasn't very helpful outside of main where I'd added it
specifically, and I wasn't doing an ensure on the block execution to turn
it off if anything was raised in the block.

https://github.com/garysweaver/autolog


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »