Adam Charrett wrote: > On Sun, April 26, 2009 1:33 pm, Duncan Webb wrote: > >> Adam Charrett wrote: >> >>> On Fri, 2009-04-24 at 21:45 +0100, John Molohan wrote: >>> >>>> Duncan Webb wrote: >>>> >>>>> Adam Charrett wrote: >>>>> >>>>> >>>>>> On Thu, April 23, 2009 10:14 pm, John Molohan wrote: >>>>>> >>>>>> >>>>>>> John Molohan wrote: >>>>>>> > <snip> > >>>> Out of interest without reading through the code were there some >>>> further >>>> steps that could have been taken running freevo prompt to narrow down >>>> the problem? >>>> >>> Not really the way I debugged it was that I had a hunch that the problem >>> was in config as exceptions in that module never seem to generate a >>> stacktrace when starting freevo. I just put lots of print statements in >>> until I narrowed the problem down to a few lines. >>> >> I used a slightly different way, using ./freevo --debug generates a >> freevo-pdb.sh that you can then run any will leave you in the main module. >> >> # cat freevo-pdb.sh >> #!/bin/bash >> export RUNAPP= >> export FREEVO_SCRIPT=/sources/svn/freevo-1/rel-1/freevo/freevo >> export FREEVO_PYTHON=/sources/svn/freevo-1/rel-1/freevo/src >> export FREEVO_LOCALE=/sources/svn/freevo-1/rel-1/freevo/i18n >> export FREEVO_SHARE=/sources/svn/freevo-1/rel-1/freevo/share >> export FREEVO_CONTRIB=/sources/svn/freevo-1/rel-1/freevo/contrib >> export FREEVO_CONFIG=/sources/svn/freevo-1/rel-1/freevo/freevo_config.py >> export FREEVO_HELPERS=/sources/svn/freevo-1/rel-1/freevo/src/helpers >> export PYTHONPATH=/sources/svn/freevo-1/rel-1/freevo/src >> export >> PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/root/bin:/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/sbin:/usr/sbin >> python -m pdb /sources/svn/freevo-1/rel-1/freevo/src/main.py --debug >> >> However I use the wing ide which is easier to use and then break and >> step though the code. >> >> Duncan >> >> > > Ahh that is useful to know, I was trying to debug it at work over lunch. > At work I've got Netbeans with Python support running in Windows and a > Ubuntu image running in VirtualBox for Freevo. One thing I haven't tried > yet is using a debugger with python, I shall give it a go. > > Cheers > > Adam > > Yep, good to know. Thanks to both of you for the replies.
John ------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users