Re: [basex-talk] Looking for something that may not exist...

2014-08-27 Thread France Baril
Hi, No offense taken about the code. Feedback is how we improve. The main purpose of tracking is actually to find what triggers the issues that are out of our hands. As our system grows more complex, it becomes very hard to build small examples for reporting bugs to the BaseX team. On the last

Re: [basex-talk] Looking for something that may not exist...

2014-08-21 Thread Christian Grün
Some time ago, Charles Foster had the idea that all bound variables should be added to the stack trace whenever an error occurs [1]; would that be helpful? Before implementing this, however, we would need to think of various issues related to performance (try/catch statements will get slower when

Re: [basex-talk] Looking for something that may not exist...

2014-08-21 Thread France Baril
If that means that I may get thousands of XML files in the trace when batch processing, it seems I would get so much information that what ever is relevant would get lost in the mess. It may be useful for other use cases. I'll let other people debate their case about adding that much info to the

Re: [basex-talk] Looking for something that may not exist...

2014-08-21 Thread Christian Grün
If that means that I may get thousands of XML files in the trace when batch processing, it seems I would get so much information that what ever is relevant would get lost in the mess. It would mean that all variables would be bound to a map in an additional error variable (e.g.

Re: [basex-talk] Looking for something that may not exist...

2014-08-19 Thread Christian Grün
Hi France, I would also be interested if you'd like a functionality as proposed by Andy, and if you are interested in improving debugging your XQuery code, or if you think that such a function could also be helpful in productive code? Do you have some more input? Thanks, Christian On Mon, Aug

Re: [basex-talk] Looking for something that may not exist...

2014-08-19 Thread France Baril
Hi, I am hoping to use this for debugging. Our project is fairly complex and I use a controller function to apply multiple operations to content (each of these may use one or more function). When I get a 500 error, it's very hard for me to pinpoint the source of the issue. I can get the data

Re: [basex-talk] Looking for something that may not exist...

2014-08-19 Thread Andy Bunce
If the goal is debugging .. another approach might be to think about Aspect Oriented Programming something like http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/ /Andy On 19 August 2014 18:05, France Baril france.ba...@architextus.com wrote: Hi, I am hoping to use this

Re: [basex-talk] Looking for something that may not exist...

2014-08-19 Thread Marc van Grootel
Hi France, Ok I get it now. No, really, because what your working on is very similar to what I'm regularly dealing with at work (translation, xliff etc.). I can also relate to your feeling that you need more control or insight in what's going on in your code. I have been through this journey too