Re: [sigrok-devel] better python error/diagnostics out of decoders

2015-03-17 Thread duane
Jens>> 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.Ok - I'll try that for the decode partWhat about the "import" step when I have stupid syntax errors, sometimes it gives me a line number, othe

Re: [sigrok-devel] better python error/diagnostics out of decoders

2015-03-17 Thread Jens Steinhauser
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, 201

[sigrok-devel] better python error/diagnostics out of decoders

2015-03-17 Thread duane
Hi,I was wondering if there is a way to get better diagnostics out of the protocol decoder when you do wrong things in PythonFor example all I get is this: >> srd: Protocol decoder instance FoFo: IndexError: list index out of rangeA function name, or line number or something would be very help