On 15-Nov-09, at 9:08 PM, James Youngquist wrote:

>
> Hello,
>
>  I'm new at the whole python/sage thing.  Is there a better way to  
> debug
> pieces of code we're working on other than to insert print statements?
> Something where we can step through the code a line at a time or  
> generate
> profiling information regarding number of times a function was called?

 From the notebook, not really.  From the command line, yes -- pdb,  
the python debugger.  It's not great but it is a "source code  
debugger".  From the command line, on a traceback, try debug (and  
then, quickly, h for help).

Nick

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to