Experimental Physics and Industrial Control System
Hi Jamie,
Forgive my ignorance. After examine the wrapper code created by SWIG as well as the SwigDoc,
The exceptions originated from Python could be output to stderr.
I have committed the changes to the repository. Please check it out.
Best
Xiaoqiang
On Jul 29, 2013, at 12:26 AM, Jameson Graef Rollins <[email protected]> wrote:
> On Sun, Jul 07 2013, Xiaoqiang Wang <[email protected]> wrote:
>> I have the same headache when debugging pcas applications. The server
>> tool library does not provides an exception handler, like in the CA
>> client library, this error could only be checked from the
>> console. Even though, the error seems ambiguous and can not be
>> directly related to the python code.
>>
>> So I normally separate functions into its own module/class/function
>> and test them. And then interface to it by subclassing pcaspy Driver.
>
> Hi, Xiaoqiang. This method seems less than ideal, since without
> subclassing the pcaspy.Driver to begin with a lot of the important
> functionality is not testable. For instance, db read/writes are not
> possible, which is an important aspect of what the driver does.
>
> I don't yet understand how the server itself works, or how pcaspy wraps
> it, but I'm perplexed as to how the python exception is suppressed. Is
> there no way we could at least coax the server into display the python
> exception error message to the console?
>
> In lieu of that, would it be possible to put together some sort of dummy
> server that would maybe not have all the functionality of the main
> server, but would expose the python exceptions for testing?
>
> jamie.
- Replies:
- Re: catching python exception in pcaspy Jameson Graef Rollins
- References:
- catching python exception in pcaspy Jameson Graef Rollins
- Re: catching python exception in pcaspy Xiaoqiang Wang
- Re: catching python exception in pcaspy Jameson Graef Rollins
- Navigate by Date:
- Prev:
US ITER looking for CODAC/EPICS software engineering service provider DeVan, Bill
- Next:
RE: Electronic Logbooks Emmanuel Mayssat
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: catching python exception in pcaspy Jameson Graef Rollins
- Next:
Re: catching python exception in pcaspy Jameson Graef Rollins
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024