Development page updated with debug.caller_name() helper hint

18 views
Skip to first unread message

anatoly techtonik

unread,
May 15, 2012, 1:33:42 PM5/15/12
to spyd...@googlegroups.com
Hi,

I've updated Development wiki page to include a few hints I use constantly to research Spyder internals. Can't resist to share the awesomeness. =)

    import sys; print >> sys.stderr, 'Called from:', spyderlib.utils.debug.caller_name()


Hope this will help you as well.

Pierre Raybaut

unread,
May 17, 2012, 11:52:29 AM5/17/12
to spyd...@googlegroups.com
Thanks for sharing, Anatoly.

2012/5/15 anatoly techtonik <tech...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "spyder" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/spyderlib/-/a3RD2sS3_EYJ.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to
> spyderlib+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/spyderlib?hl=en.

anatoly techtonik

unread,
Jun 23, 2013, 5:52:43 PM6/23/13
to spyd...@googlegroups.com
I realized that I am unable to remember all the classes and methods, and inheritance, and it was hard to jump from one to another while debugging Spyder internals, so I've added another helper in https://code.google.com/p/spyderlib/source/detail?r=b21e117e61145f239f9de69796f0804e9ae5c9e8 that allows to dump execution chain to file. Hopefully it will be useful for you too.
Reply all
Reply to author
Forward
0 new messages