Hi Thomas,
> On 20 Sep 2016, at 03:30, Thomas Cheng <[email protected]> wrote:
> 
> Hi howdies,
> 
>  Recently I'm picking up some legacy puppet codes in my new company. the 
> puppet code base has custom functions written in ruby before.
> 
> One major issue is: how to debug the custom functions to figure out the logic 
> inside? Can I copy/paste into an external general ruby script and debug it 
> with 'ruby -rdebug <script>', Or there is a better puppet-style debugging 
> method that we can learn? Thanks a lot.

I use RUBYLIB env setting and the pry gem for debugging.
http://pryrepl.org/

Best,
Martin

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/DDBDB5E5-7BC2-43F5-B94F-79E619FAB7E6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to