[BangPypers] Debugging functions/tools/ways
Sriram Narayanan
sriramnrn at gmail.com
Sat Sep 14 03:05:25 CEST 2013
On Sep 13, 2013 3:58 PM, "Saager Mhatre" <saager.mhatre at gmail.com> wrote:
>
> On Fri, Sep 13, 2013 at 2:46 PM, Anand Chitipothu <anandology at gmail.com
>wrote:
>
> > On Fri, Sep 13, 2013 at 2:36 PM, Dhruv Baldawa <dhruvbaldawa at gmail.com
> > >wrote:
> >
> > > This is what I use for debugging:
> > > from IPython.core.debugger import Tracer; Tracer()()
> > >
> > > works mostly like pdb, with some nice features like tab completions
> > >
> >
> > The best debugging tool I've used so far is the print statement. What
about
> > others?
> >
>
> Unit tests... anyone? :)
Test driven development using Unit Tests, regular logging on production.
I've resumed learning dtrace for debugging on production. Given Paul Fox'
work on dtrace for Linux (apart from dtrace being production ready on bsd
and Solaris), and the dtrace patches for Python ( both of which I haven't
tried yet), I think using dtrace will be most effective going forward.
>
> - d
>
Ram _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
More information about the BangPypers
mailing list