Hi,

Yes, the output currently produced is not very helpful, and will
hopefully get better/more in the future. In the meantime, you can wrap
the code of your decoder's 'decode()' function into a big exception
handler and use python's 'traceback' module to produce a stack trace.

On Tue, Mar 17, 2015 at 11:26 PM, <du...@duaneellis.com> wrote:
>
> Hi,
>
> I was wondering if there is a way to get better diagnostics out of the 
> protocol decoder when you do wrong things in Python
>
> For example .... all I get is this:
>
>  >> srd: Protocol decoder instance FoFo: IndexError: list index out of range
>
> A function name, or line number or something would be very helpful in this 
> situation.
>
> I currently have to resort to lots of 'print' statements narrowing down the 
> place where I've done something stupid... then I must undo all of these print 
> statements.
>
> Painful...  Just looking for another way
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> sigrok-devel mailing list
> sigrok-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sigrok-devel
>

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to