Re: Debugging JavaScript esp files

2010-10-22 Thread Sandro Boehme
Hi Felix, compilationDone is now triggered in my environment. At some point I saw that the compilationDone event is triggered for Dim. This gave me a chance to find out how this is all suppose to work. o Problem one: I added the new JSDT-based debugger to the listener of the global ContextFac

Re: Debugging JavaScript esp files

2010-10-22 Thread Felix Meschberger
Hi Sandro, On 22.10.2010 16:15, Sandro Boehme wrote: > Hi Felix, > >> event is not triggered. Do you have an idea what might be different in >> your environment? > right now I'm on a good way to find out why the compilationDone event is > not triggered so there is no need for you to invest time i

Re: Debugging JavaScript esp files

2010-10-22 Thread Sandro Boehme
Hi Felix, event is not triggered. Do you have an idea what might be different in your environment? right now I'm on a good way to find out why the compilationDone event is not triggered so there is no need for you to invest time in that right now. Best, Sandro

Re: Debugging JavaScript esp files

2010-10-20 Thread Sandro Boehme
Hi Felix, Am 17.10.10 20:28, schrieb Felix Meschberger: Hi, On 17.10.2010 16:05, Sandro Boehme wrote: Hi Felix, thanks for the feedback. The Swing debugger GUI doesn't seem to work in this case as it cannot open e.g. the explorer.esp file. It says: "Syntax error (.../explorer.esp#83)" This re

Re: Debugging JavaScript esp files

2010-10-20 Thread Sandro Boehme
Hi Felix, Am 19.10.10 13:41, schrieb Felix Meschberger: Hi, On 19.10.2010 13:20, Sandro Boehme wrote: Hi Felix, Am 19.10.10 08:48, schrieb Felix Meschberger: o In the Eclipse preferences one needs to map *.esp files to the JavaScript content type. Yes. Likewise for *.ecma. Though I have iss

Re: Debugging JavaScript esp files

2010-10-19 Thread Sandro Boehme
Hi Felix, Am 19.10.10 15:28, schrieb Felix Meschberger: Hi, On 19.10.2010 14:21, Sandro Boehme wrote: Am 19.10.10 13:41, schrieb Felix Meschberger: Hi, I cannot easily find out if the trigger to load the JavaScript files is already there somewhere. I guess we only need to trigger the handle

Re: Debugging JavaScript esp files

2010-10-19 Thread Felix Meschberger
Hi, On 19.10.2010 14:21, Sandro Boehme wrote: > Am 19.10.10 13:41, schrieb Felix Meschberger: >> Hi, > I cannot easily find out if the > trigger to load the JavaScript files is already there somewhere. > > I guess we only need to trigger the handleCompilationDone() methode > so

Re: Debugging JavaScript esp files

2010-10-19 Thread Sandro Boehme
Am 19.10.10 13:41, schrieb Felix Meschberger: Hi, I cannot easily find out if the trigger to load the JavaScript files is already there somewhere. I guess we only need to trigger the handleCompilationDone() methode somewhere in Sling but I don't know enough about Sling to decide where that woul

Re: Debugging JavaScript esp files

2010-10-19 Thread Felix Meschberger
Hi, On 19.10.2010 13:20, Sandro Boehme wrote: > Hi Felix, > > Am 19.10.10 08:48, schrieb Felix Meschberger: >>> o In the Eclipse preferences one needs to map *.esp files to the >>> JavaScript content type. >> >> Yes. Likewise for *.ecma. Though I have issues setting breakpoints on >> *.esp files

Re: Debugging JavaScript esp files

2010-10-19 Thread Sandro Boehme
Hi Felix, Am 19.10.10 08:48, schrieb Felix Meschberger: >> o In the Eclipse preferences one needs to map *.esp files to the >> JavaScript content type. > > Yes. Likewise for *.ecma. Though I have issues setting breakpoints on > *.esp files because on my box Eclipse tells it cannot resolve the lin

Re: Debugging JavaScript esp files

2010-10-18 Thread Felix Meschberger
Hi Sandro, On 19.10.2010 02:39, Sandro Boehme wrote: > Hi Felix, > > after diving into the topic I got the following understanding. Please > correct me if I'm wrong. > o In the Eclipse preferences one needs to map *.esp files to the > JavaScript content type. Yes. Likewise for *.ecma. Though I h

Re: Debugging JavaScript esp files

2010-10-18 Thread Sandro Boehme
Hi Felix, after diving into the topic I got the following understanding. Please correct me if I'm wrong. o In the Eclipse preferences one needs to map *.esp files to the JavaScript content type. o Now its possible to set a breakpoint in the esp file. o Next one needs to load the esp script fil

Re: Debugging JavaScript esp files

2010-10-17 Thread Sandro Boehme
Hi Felix, that was fast. I'm impressed. Thanks for the tutorial. I can connect too but the debugger also doesn't stop at my breakpoint like in your case. Best, Sandro PS: Just in case somebody else want to follow: The export in step 5 is "org.mozilla.javascript.debug". Am 17.10.10 23:00,

Re: Debugging JavaScript esp files

2010-10-17 Thread Felix Meschberger
Hi, On 17.10.2010 20:34, Justin Edelson wrote: > On Sun, Oct 17, 2010 at 2:28 PM, Felix Meschberger wrote: >> Hi, >> >> On 17.10.2010 16:05, Sandro Boehme wrote: >>> Hi Felix, >>> >>> thanks for the feedback. >>> The Swing debugger GUI doesn't seem to work in this case as it cannot >>> open e.g.

Re: Debugging JavaScript esp files

2010-10-17 Thread Justin Edelson
On Sun, Oct 17, 2010 at 2:28 PM, Felix Meschberger wrote: > Hi, > > On 17.10.2010 16:05, Sandro Boehme wrote: >> Hi Felix, >> >> thanks for the feedback. >> The Swing debugger GUI doesn't seem to work in this case as it cannot >> open e.g. the explorer.esp file. It says: >> "Syntax error (.../expl

Re: Debugging JavaScript esp files

2010-10-17 Thread Felix Meschberger
Hi, On 17.10.2010 16:05, Sandro Boehme wrote: > Hi Felix, > > thanks for the feedback. > The Swing debugger GUI doesn't seem to work in this case as it cannot > open e.g. the explorer.esp file. It says: > "Syntax error (.../explorer.esp#83)" > This refers to the line containing only "" which is >

Re: Debugging JavaScript esp files

2010-10-17 Thread Sandro Boehme
Hi Felix, thanks for the feedback. The Swing debugger GUI doesn't seem to work in this case as it cannot open e.g. the explorer.esp file. It says: "Syntax error (.../explorer.esp#83)" This refers to the line containing only "" which is correct in my opinion. I also tried the "Eclipse IDE for

Re: Debugging JavaScript esp files

2010-10-16 Thread Felix Meschberger
Hi Sandro, The best solution (which I once considered working on a long time ago but never got around to implement) is to have Rhino debugging support in Eclipse. But for now, you may set the "org.apache.sling.scripting.javascript.debug" framework property (e.g. in the sling.properties file) to t

Debugging JavaScript esp files

2010-10-16 Thread Sandro Boehme
Hello, I'm trying to get into the Sling Explorer and I'm wondering how (or if) you guys debug these esp scripts? While the Eclipse debugger stops in jsp files it doesn't stop in esp files as they don't contain Java code. Is there a special JSR-223 debugger plugin or some trick I don't know of?