Re: Cocoon stack traces

2005-08-02 Thread Sylvain Wallez
Bertrand Delacretaz wrote: Le 1 août 05, à 15:10, Sylvain Wallez a écrit : ...Tell me what you think! /me thinks that this is just great, thanks Sylvain! Thanks! I just committed a few changes in the flow engine so that we have JS stacktraces in the Cocoon stacktrace! -Bertrand, thin

Re: Cocoon stack traces

2005-08-02 Thread Bertrand Delacretaz
Le 1 août 05, à 15:10, Sylvain Wallez a écrit : ...Tell me what you think! /me thinks that this is just great, thanks Sylvain! -Bertrand, thinking about launching polishyourheroplates.com smime.p7s Description: S/MIME cryptographic signature

Re: Cocoon stack traces

2005-08-01 Thread Stefano Mazzocchi
Sylvain Wallez wrote: Conclusion -- The Cocoon stacktrace gives some very valuable information about what problem happened, and more importantly where it happened. We now need to progressively add location information to important places in the code to make these Cocoon stacktraces mo

Re: Cocoon stack traces

2005-08-01 Thread Sylvain Wallez
Ugo Cei wrote: Il giorno 01/ago/05, alle 15:10, Sylvain Wallez ha scritto: I have refactored the error handling stuff to have Cocoon stack traces, i.e. a trace of the involved components and the corresponding locations in the call stack. I think it's time to take that hero plate o

Re: Cocoon stack traces

2005-08-01 Thread Ugo Cei
Il giorno 01/ago/05, alle 15:10, Sylvain Wallez ha scritto: I have refactored the error handling stuff to have Cocoon stack traces, i.e. a trace of the involved components and the corresponding locations in the call stack. I think it's time to take that hero plate out of the close

Re: Cocoon stack traces

2005-08-01 Thread Upayavira
Sylvain Wallez wrote: Conclusion -- The Cocoon stacktrace gives some very valuable information about what problem happened, and more importantly where it happened. We now need to progressively add location information to important places in the code to make these Cocoon stacktraces

Cocoon stack traces

2005-08-01 Thread Sylvain Wallez
Hi all, I have refactored the error handling stuff to have Cocoon stack traces, i.e. a trace of the involved components and the corresponding locations in the call stack. For example, we can track nested JXTG macro calls, flowscript function calls, pipeline locations, mounted sitemaps, etc

Re: Pipleline Execution Stack Trace (was Cocoon Stack Traces)

2004-01-19 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: So I would propose something like the following: 1) Have the TreeProcessor pass the sitemap source location in setGenerator(), addTransformer(), and setSerializer() to the ProcessingPipeline. 2) In "Debug" mode instrument the PipelineProcessor t

Re: Pipleline Execution Stack Trace (was Cocoon Stack Traces)

2004-01-19 Thread Vadim Gritsenko
Christopher Oliver wrote: So I would propose something like the following: 1) Have the TreeProcessor pass the sitemap source location in setGenerator(), addTransformer(), and setSerializer() to the ProcessingPipeline. 2) In "Debug" mode instrument the PipelineProcessor to write the output of e

Cocoon Debugger API (was Re: Cocoon Stack Traces)

2004-01-15 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Mmmh... if we push and pop stack frame indications, isn't it enough to build a debugger? Without getting into all the details, I think a proper API for a global debugger would require quite a bit more infrastructure tha

Pipleline Execution Stack Trace (was Cocoon Stack Traces)

2004-01-15 Thread Christopher Oliver
There are several issues with getting a meaningful stack trace from the execution of the pipeline: 1) The pipeline itself is not executed by the TreeProcessor but instead by a Pipeline processor. The sitemap source locations of the pipeline elements are not currently available to the Processing

Re: Cocoon Stack Traces

2004-01-15 Thread Stefano Mazzocchi
On 15 Jan 2004, at 03:37, Geoff Howard wrote: Christopher Oliver wrote: I think is still needed if you want to see the values of sitemap variables while debugging. hmmm, don't you get this already with the stacktraces? I mean, the sitemap variables are normally used as: 1) tokens for URLs 2

Re: Cocoon Stack Traces

2004-01-15 Thread Torsten Curdt
I think is still needed if you want to see the values of sitemap variables while debugging. Would it be possible to modify the output from sitemap: (mount at file:/C:/cocoon4/build/webapp/samples/flow/sitemap.xmap:38:68) sitemap: (mount at file:/C:/cocoon4/build/webapp/samples/sitemap.xmap:154

Re: Cocoon Stack Traces

2004-01-15 Thread Torsten Curdt
Ok, let's add the cocoon stack trace only (no map:log or similar) for now and see what happens? deal? +1 deal :) -- Torsten

Re: Cocoon Stack Traces

2004-01-15 Thread Steven Noels
On Jan 15, 2004, at 2:44 AM, Stefano Mazzocchi wrote: Ok, let's add the cocoon stack trace only (no map:log or similar) for now and see what happens? deal? +1 -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source Java & XMLAn Orixo Member Rea

Re: Cocoon Stack Traces

2004-01-14 Thread Geoff Howard
Christopher Oliver wrote: Stefano Mazzocchi wrote: On 14 Jan 2004, at 21:28, Torsten Curdt wrote: I'm still +1 to and see no real reason why not to do it. All I am asking is ...do we really need it? h, [feeling hacky is not a real reason if there is no alternative proposed and the need i

Re: Cocoon Stack Traces

2004-01-14 Thread Vadim Gritsenko
Joerg Heinicke wrote: On 14.01.2004 21:28, Torsten Curdt wrote: I'm still +1 to and see no real reason why not to do it. All I am asking is ...do we really need it? IMO no. We should review the logging of the sitemap components and change it in that way that you get a clear meaning of the

Re: Cocoon Stack Traces

2004-01-14 Thread Christopher Oliver
Stefano Mazzocchi wrote: On 14 Jan 2004, at 21:28, Torsten Curdt wrote: I'm still +1 to and see no real reason why not to do it. All I am asking is ...do we really need it? h, [feeling hacky is not a real reason if there is no alternative proposed and the need is felt... I am just

Re: Cocoon Stack Traces

2004-01-14 Thread Stefano Mazzocchi
On 14 Jan 2004, at 21:28, Torsten Curdt wrote: I don't like this and find it hacky. Using println in the flowscript is a useful technique and as I said I use it. But introducing official println equivalents all over the place will lead to floods of messages I'd like to second that. Besides I

Re: Cocoon Stack Traces

2004-01-14 Thread Joerg Heinicke
On 14.01.2004 21:28, Torsten Curdt wrote: [ Besides I still think *println* is bad in flowscript although it might be (well.. *is*) super for development. But having e.g. an optional flowscript console would be much better IMO. Otherwise: if we start using println... which components may use Syste

Re: Cocoon Stack Traces

2004-01-14 Thread peter royal
On Jan 14, 2004, at 1:10 PM, Jorg Heymans wrote: How is setting a breakpoint different from inserting a logging statement? Breakpoint locations need to be carefully chosen as well with strategy. Ofcourse if you get it wrong you don't loose much time, just reset and rerun, no recompiling needed.

Re: Cocoon Stack Traces

2004-01-14 Thread Torsten Curdt
I don't like this and find it hacky. Using println in the flowscript is a useful technique and as I said I use it. But introducing official println equivalents all over the place will lead to floods of messages I'd like to second that. Besides I think we are mixing debugging with error report

Re: Cocoon Stack Traces

2004-01-14 Thread Nicola Ken Barozzi
Jorg Heymans wrote: I'm dead serious when I think that debuggers brain-damange their users: debugging a program with a debugger instead of with a ton of println is *much* slower for me. not only because of the many layers of tool that have to run around my program, but also because logging fo

Re: Cocoon Stack Traces

2004-01-14 Thread Jorg Heymans
I'm dead serious when I think that debuggers brain-damange their users: debugging a program with a debugger instead of with a ton of println is *much* slower for me. not only because of the many layers of tool that have to run around my program, but also because logging forces you to think abo

Re: Cocoon Stack Traces

2004-01-14 Thread Stefano Mazzocchi
On 13 Jan 2004, at 11:46, Torsten Curdt wrote: It seems to me like this thread mixes concerns between error reporting (strack traces) and debugging or "processing monitoring" (knowing what's going on at a high level). :) exactly What I want is a way to know what my cocoon is doing at a level tha

Re: Cocoon Stack Traces

2004-01-14 Thread Stefano Mazzocchi
On 13 Jan 2004, at 11:39, Torsten Curdt wrote: Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when the development turnaround cycle is long (e.g. J2EE apps). For example, although

Re: Cocoon Stack Traces

2004-01-14 Thread Stefano Mazzocchi
On 13 Jan 2004, at 09:47, Steven Noels wrote: On Jan 13, 2004, at 7:56 AM, Sylvain Wallez wrote: However, do we really need a new sitemap statement? What about a simple log action: ? +1 IMHO, I find adding a println() type construct to the sitemap a bit of a hack (but admittedly less work than

Re: Cocoon Stack Traces

2004-01-14 Thread Nicolas Toper
Hi, I'm a cocoon users, and I agree: a general debugger would be cool; but we can live without it. Anyway, it'll make work more efficient Le Mercredi 14 Janvier 2004 18:44, Stefano Mazzocchi a écrit : > On 12 Jan 2004, at 23:40, Sylvain Wallez wrote: > > Stefano Mazzocchi wrote: > >> On 12 Jan 20

Re: Cocoon Stack Traces

2004-01-14 Thread Stefano Mazzocchi
On 12 Jan 2004, at 23:40, Sylvain Wallez wrote: Stefano Mazzocchi wrote: On 12 Jan 2004, at 18:18, Christopher Oliver wrote: Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when t

Re: Cocoon Stack Traces

2004-01-13 Thread Geoff Howard
Sylvain Wallez wrote: Christopher Oliver wrote: I don't think anyone is suggesting that there shouldn't be support for a source level debugger. But that is a large project, IMO. And having the ability to do "println" debugging doesn't preclude it. You're right. I agree with Vadim that an explic

Re: Cocoon Stack Traces

2004-01-13 Thread Torsten Curdt
It seems to me like this thread mixes concerns between error reporting (strack traces) and debugging or "processing monitoring" (knowing what's going on at a high level). :) exactly So it might be a good idea to have write to a specific logging category ("cocoon.processing"), where calls to ad

Re: Cocoon Stack Traces

2004-01-13 Thread Steven Noels
On Jan 13, 2004, at 10:34 AM, Bertrand Delacretaz wrote: Le Mardi, 13 jan 2004, à 09:47 Europe/Zurich, Steven Noels a écrit : ... saw Marc once hooking the Eclipse debugger into an Apple, and that seriously kicked ass - you don't need println() anymore of you have a full-blown debugger at your s

Re: Cocoon Stack Traces

2004-01-13 Thread Torsten Curdt
Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when the development turnaround cycle is long (e.g. J2EE apps). For example, although Rhino has a JavaScript debugger, I rarely use

Re: Cocoon Stack Traces

2004-01-13 Thread Bertrand Delacretaz
Le Mardi, 13 jan 2004, à 09:47 Europe/Zurich, Steven Noels a écrit : ... saw Marc once hooking the Eclipse debugger into an Apple, and that seriously kicked ass - you don't need println() anymore of you have a full-blown debugger at your service. Yes, if you're debugging java code it's fairly eas

Re: Cocoon Stack Traces

2004-01-13 Thread Steven Noels
On Jan 13, 2004, at 7:56 AM, Sylvain Wallez wrote: However, do we really need a new sitemap statement? What about a simple log action: ? +1 IMHO, I find adding a println() type construct to the sitemap a bit of a hack (but admittedly less work than coming up with a full-blown debugging API + t

Re: Cocoon Stack Traces

2004-01-12 Thread Sylvain Wallez
Christopher Oliver wrote: I don't think anyone is suggesting that there shouldn't be support for a source level debugger. But that is a large project, IMO. And having the ability to do "println" debugging doesn't preclude it. You're right. I agree with Vadim that an explicit sitemap instructi

Re: Cocoon Stack Traces

2004-01-12 Thread Bertrand Delacretaz
Le Mardi, 13 jan 2004, à 03:41 Europe/Zurich, Tony Collen a écrit : Vadim Gritsenko wrote: [snip] I don't like that message has been added to the core sitemap tags. How about adding separate tag (ant-like): It's easier to add/remove (comment/uncomment) a tag than an attribute. Or, arguing s

Re: Cocoon Stack Traces

2004-01-12 Thread Tony Collen
Vadim Gritsenko wrote: [snip] I don't like that message has been added to the core sitemap tags. How about adding separate tag (ant-like): It's easier to add/remove (comment/uncomment) a tag than an attribute. Or, arguing syntax even more: ;) this is a message, substitution: {1} or eve

Re: Cocoon Stack Traces

2004-01-12 Thread Vadim Gritsenko
Sylvain Wallez wrote: Stefano Mazzocchi wrote: On 12 Jan 2004, at 18:18, Christopher Oliver wrote: Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when the development turnaround

Re: Cocoon Stack Traces

2004-01-12 Thread Christopher Oliver
I don't think anyone is suggesting that there shouldn't be support for a source level debugger. But that is a large project, IMO. And having the ability to do "println" debugging doesn't preclude it. My $0.02, Chris Sylvain Wallez wrote: Stefano Mazzocchi wrote: On 12 Jan 2004, at 18:18, Chr

Re: Cocoon Stack Traces

2004-01-12 Thread Antonio Gallardo
Vadim Gritsenko dijo: > Christopher Oliver wrote: >> Sylvain Wallez wrote: >> >>> - we need a "popStackFrame()" method, since once a component has been >>> executed successfully and execution continues in its following >>> siblings, it should no longer appear in the stack trace >> >> >> The idea is

Re: Cocoon Stack Traces

2004-01-12 Thread Vadim Gritsenko
Christopher Oliver wrote: Sylvain Wallez wrote: - we need a "popStackFrame()" method, since once a component has been executed successfully and execution continues in its following siblings, it should no longer appear in the stack trace The idea is that this stack trace is created during exce

Re: Cocoon Stack Traces

2004-01-12 Thread Joerg Heinicke
On 12.01.2004 23:40, Sylvain Wallez wrote: How about adding a "message" attribute to ProcessingNode, e.g: which would output something like sitemap: C:/cocoon/build/webapp/samples/sitemap.xmap:16:20: match is page/getNumberA.html I like this very much! +1 I don't like this and f

Re: Cocoon Stack Traces

2004-01-12 Thread bernhard huber
hi, Great idea, i was thinking about doing some sort of sitemap debugging, please keep in mind that output is not solely system.out but some sort of UI, perhaps to give some idea, the servlet, or command line might be replaced by ui see http://meineseite.one.at/bh22351/cocoonbean-3.png, or http:

Re: Cocoon Stack Traces

2004-01-12 Thread Sylvain Wallez
Stefano Mazzocchi wrote: On 12 Jan 2004, at 18:18, Christopher Oliver wrote: Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when the development turnaround cycle is long (e.g. J2

Re: Cocoon Stack Traces

2004-01-12 Thread Stefano Mazzocchi
On 12 Jan 2004, at 18:18, Christopher Oliver wrote: Also with the fast edit - reload - test cycle provided by Cocoon, "println()" style debugging seems to work quite well. A source-level debugger is mainly required when the development turnaround cycle is long (e.g. J2EE apps). For example, alt

Re: Cocoon Stack Traces

2004-01-12 Thread Stefano Mazzocchi
On 12 Jan 2004, at 16:35, Christopher Oliver wrote: Sylvain Wallez wrote: Christopher Oliver wrote: I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. WDYT?

Re: Cocoon Stack Traces

2004-01-12 Thread Stefano Mazzocchi
On 12 Jan 2004, at 07:38, Christopher Oliver wrote: I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. Currently using the JVM stack trace produces a poor resu

Re: Cocoon Stack Traces

2004-01-12 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Mmmh... if we push and pop stack frame indications, isn't it enough to build a debugger? The runtime part of the debugger can be a optional listener in add/popStackFrame which suspends the execution when a breakpoint is en

Re: Cocoon Stack Traces

2004-01-12 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: Mmmh... if we push and pop stack frame indications, isn't it enough to build a debugger? The runtime part of the debugger can be a optional listener in add/popStackFrame which suspends the execution when a breakpoint is encountered (detected usi

Re: Cocoon Stack Traces

2004-01-12 Thread Christopher Oliver
Sylvain Wallez wrote: Mmmh... if we push and pop stack frame indications, isn't it enough to build a debugger? The runtime part of the debugger can be a optional listener in add/popStackFrame which suspends the execution when a breakpoint is encountered (detected using the stack element's loca

Re: Cocoon Stack Traces

2004-01-12 Thread Sylvain Wallez
Christopher Oliver wrote: Sylvain Wallez wrote: Christopher Oliver wrote: I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. WDYT? /me thinks it's great!

Re: Cocoon Stack Traces

2004-01-12 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. WDYT? /me thinks it's great! Some low-level remarks, howev

Re: Cocoon Stack Traces

2004-01-12 Thread Sylvain Wallez
Christopher Oliver wrote: I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. Currently using the JVM stack trace produces a poor result. Although location informa

Cocoon Stack Traces

2004-01-11 Thread Christopher Oliver
I started looking into how I could get a meaningful stack trace (with location information) spanning (possibly nested) invocations of the sitemap, flowscript, and JXTemplateGenerator. Currently using the JVM stack trace produces a poor result. Although location information is available it isn't