You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Vidar Ramdal <vi...@idium.no> on 2010/01/28 20:30:52 UTC
Rhino Javascript Debugger
Is anyone using this with Sling?
There seems to have been some interest in it, e.g. SLING-678 [1] but
I'm not finding any real usage examples.
If anyone has experience in using the debugger with ESP scripts, I'd
be interested in learning about it.
--
Vidar S. Ramdal <vi...@idium.no> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070
Re: Rhino Javascript Debugger
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
oops, clicked send to fast, sorry.
On 29.01.2010 09:45, Vidar Ramdal wrote:
> On Thu, Jan 28, 2010 at 8:56 PM, Felix Meschberger <fm...@gmail.com> wrote:
>> Hi,
>>
>> On 28.01.2010 20:30, Vidar Ramdal wrote:
>>> Is anyone using this with Sling?
>>> There seems to have been some interest in it, e.g. SLING-678 [1] but
>>> I'm not finding any real usage examples.
>>> If anyone has experience in using the debugger with ESP scripts, I'd
>>> be interested in learning about it.
>>
>> SLING-678 introduced a framework property to launch the debugger on the
>> server as soon as the Rhino ScriptEngineFactory is started. This is a
>> quick hack solution to be able to debug scripts.
>
> Yes, I got the debugger console running, but now what?
> When I try to open any ESP file with it, it always fails with a syntax
> error - I guess the debug console don't support the script delimiters
> (<% %>)?
Yes, probably ... (didn't use it for ages)...
Regards
Felix
>
>> Yet, this is of course not very scalable. A few years back we had an
>> implementation of a remote debugging support for Rhino, but this was for
>> the old Rhino Debugging API and is probably not compatible any more.
>>
>> I think, it would be nice addition to have some support for remote Rhino
>> debugging. I once dreamed of an Eclipse plugin which hooks into the
>> launching infrastructure to be able to remote debug Rhino just like Java
>> can be remotely debugged.....
>
> Sounds like a nice dream :)
>
Re: Rhino Javascript Debugger
Posted by Felix Meschberger <fm...@gmail.com>.
On 29.01.2010 09:45, Vidar Ramdal wrote:
> On Thu, Jan 28, 2010 at 8:56 PM, Felix Meschberger <fm...@gmail.com> wrote:
>> Hi,
>>
>> On 28.01.2010 20:30, Vidar Ramdal wrote:
>>> Is anyone using this with Sling?
>>> There seems to have been some interest in it, e.g. SLING-678 [1] but
>>> I'm not finding any real usage examples.
>>> If anyone has experience in using the debugger with ESP scripts, I'd
>>> be interested in learning about it.
>>
>> SLING-678 introduced a framework property to launch the debugger on the
>> server as soon as the Rhino ScriptEngineFactory is started. This is a
>> quick hack solution to be able to debug scripts.
>
> Yes, I got the debugger console running, but now what?
> When I try to open any ESP file with it, it always fails with a syntax
> error - I guess the debug console don't support the script delimiters
> (<% %>)?
>
>> Yet, this is of course not very scalable. A few years back we had an
>> implementation of a remote debugging support for Rhino, but this was for
>> the old Rhino Debugging API and is probably not compatible any more.
>>
>> I think, it would be nice addition to have some support for remote Rhino
>> debugging. I once dreamed of an Eclipse plugin which hooks into the
>> launching infrastructure to be able to remote debug Rhino just like Java
>> can be remotely debugged.....
>
> Sounds like a nice dream :)
>
Re: Rhino Javascript Debugger
Posted by Vidar Ramdal <vi...@idium.no>.
On Thu, Jan 28, 2010 at 8:56 PM, Felix Meschberger <fm...@gmail.com> wrote:
> Hi,
>
> On 28.01.2010 20:30, Vidar Ramdal wrote:
>> Is anyone using this with Sling?
>> There seems to have been some interest in it, e.g. SLING-678 [1] but
>> I'm not finding any real usage examples.
>> If anyone has experience in using the debugger with ESP scripts, I'd
>> be interested in learning about it.
>
> SLING-678 introduced a framework property to launch the debugger on the
> server as soon as the Rhino ScriptEngineFactory is started. This is a
> quick hack solution to be able to debug scripts.
Yes, I got the debugger console running, but now what?
When I try to open any ESP file with it, it always fails with a syntax
error - I guess the debug console don't support the script delimiters
(<% %>)?
> Yet, this is of course not very scalable. A few years back we had an
> implementation of a remote debugging support for Rhino, but this was for
> the old Rhino Debugging API and is probably not compatible any more.
>
> I think, it would be nice addition to have some support for remote Rhino
> debugging. I once dreamed of an Eclipse plugin which hooks into the
> launching infrastructure to be able to remote debug Rhino just like Java
> can be remotely debugged.....
Sounds like a nice dream :)
--
Vidar S. Ramdal <vi...@idium.no> - http://www.idium.no
Sommerrogata 13-15, N-0255 Oslo, Norway
+ 47 22 00 84 00 / +47 21 531941, ext 2070
Re: Rhino Javascript Debugger
Posted by Felix Meschberger <fm...@gmail.com>.
Hi,
On 28.01.2010 20:30, Vidar Ramdal wrote:
> Is anyone using this with Sling?
> There seems to have been some interest in it, e.g. SLING-678 [1] but
> I'm not finding any real usage examples.
> If anyone has experience in using the debugger with ESP scripts, I'd
> be interested in learning about it.
SLING-678 introduced a framework property to launch the debugger on the
server as soon as the Rhino ScriptEngineFactory is started. This is a
quick hack solution to be able to debug scripts.
Yet, this is of course not very scalable. A few years back we had an
implementation of a remote debugging support for Rhino, but this was for
the old Rhino Debugging API and is probably not compatible any more.
I think, it would be nice addition to have some support for remote Rhino
debugging. I once dreamed of an Eclipse plugin which hooks into the
launching infrastructure to be able to remote debug Rhino just like Java
can be remotely debugged.....
Regards
Felix
Re: Rhino Javascript Debugger
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Thu, Jan 28, 2010 at 8:30 PM, Vidar Ramdal <vi...@idium.no> wrote:
> There seems to have been some interest in it, e.g. SLING-678 [1] but
> I'm not finding any real usage examples....
I did experiment with that at the time, but haven't touched it since.
It was working for me for simple stuff when I tried, but as Felix says
the integration is just a quick hack. Patches welcome ;-)
-Bertrand