Pascal Schirrmann wrote:
> Hi,
> 
> Running (again) freevo 1.8.4-svn, on a PVR based system, I have three
> 'troubles' :
> 
> 1) This svn version includes a change I created, allowing to have
> different sound levels for each TV_CHANNELS.
> 
> Duncan did some cleaning when integrating my changes (thanks Duncan :-) )
> 
> But one cleaning doesn't work as expected, and I'm unable to understand
> why. I suppose that this change led to an exception, and, as the whole
> block is in a try: part, this exception is maybe trapped ?
> (See the diff of channels.py)

I wonder if the chan_info is not a list as "if len(chan_info) > 4:"
should work. Can you do some more testing on this, by adding a "print
type(chan_info)" before the test.

Alternatively, you can use the debugger, I have eventually figured out
how to do this. Here are the steps:
Add "import pdb, pprint" to the module you want to debug pprint is
useful to see the contents of large objects.

freevo -d (creates a freevo-pdb.sh)
./freevo-pdb.sh
b /path/to/src/tv/channels.py:102
r
p chan_info
etc.
c


Duncan

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to