What's up with V8 debugger protocol in SpiderMonkey?

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

What's up with V8 debugger protocol in SpiderMonkey?

Goro Fuji
Hi, everyone,

I'd like to develop SpiderMonkey remote debugger with V8 debugger protocol, not depending on Firefox.
I think it can be possible with the low-level JSDBGAPI and somehow higher-level JSD API (being in $firefox/js/jsd/*), but JSDBGAPI seems too low-level and JSD seems a part of Firefox. I need high-level API which doesn't depend on Firefox.

Is someone trying to do or interested in it?
Or, are there existing projects about it?

Best regards,
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Bobby Holley-2
Just FYI, you shouldn't write any new code that depends on jsd. It's going
to go away once jsdbgapi2 is ready to go.

Cheers,
bholley

On Tue, May 1, 2012 at 10:29 AM, Goro Fuji <[hidden email]> wrote:

> Hi, everyone,
>
> I'd like to develop SpiderMonkey remote debugger with V8 debugger
> protocol, not depending on Firefox.
> I think it can be possible with the low-level JSDBGAPI and somehow
> higher-level JSD API (being in $firefox/js/jsd/*), but JSDBGAPI seems too
> low-level and JSD seems a part of Firefox. I need high-level API which
> doesn't depend on Firefox.
>
> Is someone trying to do or interested in it?
> Or, are there existing projects about it?
>
> Best regards,
> _______________________________________________
> dev-tech-js-engine mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Rolando Abarca-2
In reply to this post by Goro Fuji
Is there any ETA for that? I was also about to do the same (v8 protocol for spidermonkey)

Thanks,
Rolando

On Tuesday, May 1, 2012 2:15:35 AM UTC-7, Bobby Holley wrote:
> Just FYI, you shouldn't write any new code that depends on jsd. It's going
> to go away once jsdbgapi2 is ready to go.
>
> Cheers,
> bholley

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Bobby Holley-2
I want to rip out jsd as soon as people will let me. Maybe jorendorff knows
when that will be?

On Wed, May 2, 2012 at 10:56 PM, rolando <[hidden email]> wrote:

> Is there any ETA for that? I was also about to do the same (v8 protocol
> for spidermonkey)
>
> Thanks,
> Rolando
>
> On Tuesday, May 1, 2012 2:15:35 AM UTC-7, Bobby Holley wrote:
> > Just FYI, you shouldn't write any new code that depends on jsd. It's
> going
> > to go away once jsdbgapi2 is ready to go.
> >
> > Cheers,
> > bholley
>
> _______________________________________________
> dev-tech-js-engine mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Jason Orendorff-2
On 5/2/12 4:18 PM, Bobby Holley wrote:
> I want to rip out jsd as soon as people will let me. Maybe jorendorff
> knows when that will be?
>
Whenever Firebug runs on jsdbg2. Ask Jan Odvarko. (It is not his
immediate priority AFAIK.)

-j

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Panos Astithas
On Thu, May 3, 2012 at 1:01 AM, Jason Orendorff <[hidden email]>wrote:

> On 5/2/12 4:18 PM, Bobby Holley wrote:
>
>> I want to rip out jsd as soon as people will let me. Maybe jorendorff
>> knows when that will be?
>>
>>  Whenever Firebug runs on jsdbg2. Ask Jan Odvarko. (It is not his
> immediate priority AFAIK.)
>

I've been talking about this with Honza, and although he would like to do
it ASAP, I don't think he will be able to replace jsd, until all of
Firebug's debugger-related functionality is present in jsdbg2 (severely
regressing Firebug is not an option). Since I'm not that familiar with
Firebug's internals, and Honza isn't terribly familiar with jsdbg2, he
would have to start this project without a clear estimate on the amount of
the work required.

So, my advice to him so far has been to wait until we have a functional
debugger frontend in Firefox, in order to make sure the basics are covered
(and there is working code to reuse) and then see what else is missing. The
plan is to ship the debugger frontend in Firefox 15, so perhaps work on
migrating Firebug to jsdbg2 could start in a month or so.

Cheers,
Panos
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Bobby Holley-2
It will be removed from Firefox at the same time it's removed from
Spidermonkey and Gecko, at which point it will no longer be possible to use
it with new releases of SpiderMonkey (since we'll likely be removing
various internal hooks that it depends on).

On Sun, May 6, 2012 at 2:24 PM, Fuji, Goro <[hidden email]> wrote:

> Thanks, guys,
>
> Because Iembed SpiderMonkey directory into my software, I think I can
> use jsd even if it is removed from Firefox, copying it from Firefox
> source tree.
> If jsdbg2 becomes available, I'll investigate it and may migrate it.
>
> On Thu, May 3, 2012 at 4:38 PM, Panos Astithas <[hidden email]> wrote:
> > On Thu, May 3, 2012 at 1:01 AM, Jason Orendorff <[hidden email]>
> > wrote:
> >>
> >> On 5/2/12 4:18 PM, Bobby Holley wrote:
> >>>
> >>> I want to rip out jsd as soon as people will let me. Maybe jorendorff
> >>> knows when that will be?
> >>>
> >> Whenever Firebug runs on jsdbg2. Ask Jan Odvarko. (It is not his
> immediate
> >> priority AFAIK.)
> >
> >
> > I've been talking about this with Honza, and although he would like to
> do it
> > ASAP, I don't think he will be able to replace jsd, until all of
> Firebug's
> > debugger-related functionality is present in jsdbg2 (severely regressing
> > Firebug is not an option). Since I'm not that familiar with Firebug's
> > internals, and Honza isn't terribly familiar with jsdbg2, he would have
> to
> > start this project without a clear estimate on the amount of the work
> > required.
> >
> > So, my advice to him so far has been to wait until we have a functional
> > debugger frontend in Firefox, in order to make sure the basics are
> covered
> > (and there is working code to reuse) and then see what else is missing.
> The
> > plan is to ship the debugger frontend in Firefox 15, so perhaps work on
> > migrating Firebug to jsdbg2 could start in a month or so.
> >
> > Cheers,
> > Panos
> >
>
>
> Regards,
> --
> Fuji, Goro (@__gfx__)
>
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Jason Orendorff-2
On 5/6/12 11:05 PM, Fuji, Goro wrote:
> Oh, really!?
>
> So, if I start to write a remote debugger just now, should I write
> code with jsdbg2? even if it is a draft?
>
Yes, absolutely.

It is more than a draft. The most important parts are implemented. We
are actively adding features.

Unfortunately there is no tutorial yet. You have to (at least a little
bit) understand compartments in order to use jsdbg2, so there's a bit of
a learning curve getting started. But once you've started it's about as
easy to use as JSD2 and quite a bit safer.

-j

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Wes Garland
On 7 May 2012 09:01, Jason Orendorff <[hidden email]> wrote:

> Unfortunately there is no tutorial yet. You have to (at least a little
> bit) understand compartments in order to use jsdbg2, so there's a bit of a
> learning curve getting started. But once you've started it's about as easy
> to use as JSD2 and quite a bit safer.
>

I know JSD is being deprecated (thank God); is jsdbgapi also being
deprecated?

Thanks,
Wes

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Dave Mandelin-2
In reply to this post by Jason Orendorff-2
On Monday, May 7, 2012 6:10:10 AM UTC-7, Wes Garland wrote:

> On 7 May 2012 09:01, Jason Orendorff <[hidden email]> wrote:
>
> > Unfortunately there is no tutorial yet. You have to (at least a little
> > bit) understand compartments in order to use jsdbg2, so there's a bit of a
> > learning curve getting started. But once you've started it's about as easy
> > to use as JSD2 and quite a bit safer.
> >
>
> I know JSD is being deprecated (thank God); is jsdbgapi also being
> deprecated?
>
> Thanks,
> Wes
>
> --
> Wesley W. Garland
> Director, Product Development
> PageMail, Inc.
> +1 613 542 2787 x 102

We were planning to remove jsdbgapi too. Do you depend on it?

Dave
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Wes Garland
On 7 May 2012 16:09, Dave Mandelin <[hidden email]> wrote:

> We were planning to remove jsdbgapi too. Do you depend on it?
>

No more than we depend on JSD (we use the old 1.7-era shell debugger base
code).

That said, IIRC there are functions that should be in JSAPI which are in
jsdbgapi which might affect others trying to do things like find out
non-enumerable properties from C.

There is also the Piston abandoned FOSS project which uses jdbgapi to
interface with the Eclipse remote debugger. I suspect it has few, if any
users. http://code.google.com/p/piston/

Wes

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.
+1 613 542 2787 x 102
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Dave Mandelin-2
In reply to this post by Dave Mandelin-2
On Monday, May 7, 2012 1:26:43 PM UTC-7, Wes Garland wrote:

> On 7 May 2012 16:09, Dave Mandelin <[hidden email]> wrote:
>
> > We were planning to remove jsdbgapi too. Do you depend on it?
> >
>
> No more than we depend on JSD (we use the old 1.7-era shell debugger base
> code).
>
> That said, IIRC there are functions that should be in JSAPI which are in
> jsdbgapi which might affect others trying to do things like find out
> non-enumerable properties from C.

Good to know. OK, we'll have to check on that when we yank those things out. Thanks for pointing it out.

Dave
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Fwd: Delivery Status Notification (Failure)

Wes Garland
In reply to this post by Wes Garland
dmandelin, I think you are sending emails to an un-replyable destination
somehow.
all, here is my message --

---------- Forwarded message ----------
From: Mail Delivery Subsystem <[hidden email]>
Date: 7 May 2012 16:26
Subject: Delivery Status Notification (Failure)
To: [hidden email]


Delivery to the following recipient failed permanently:

    [hidden email]

----- Original message -----
[header snip]

On 7 May 2012 16:09, Dave Mandelin <[hidden email]> wrote:

> We were planning to remove jsdbgapi too. Do you depend on it?
>

No more than we depend on JSD (we use the old 1.7-era shell debugger base
code).

That said, IIRC there are functions that should be in JSAPI which are in
jsdbgapi which might affect others trying to do things like find out
non-enumerable properties from C.

There is also the Piston abandoned FOSS project which uses jdbgapi to
interface with the Eclipse remote debugger. I suspect it has few, if any
users. http://code.google.com/p/piston/

Wes

--
Wesley W. Garland
Director, Product Development
PageMail, Inc.

+1 613 542 2787 x 102
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

RE: What's up with V8 debugger protocol in SpiderMonkey?

Miles Thornton
In reply to this post by Dave Mandelin-2
>
> We were planning to remove jsdbgapi too. Do you depend on it?
>
> Dave

We use jsdbgapi in our embedding (I used it to write a basic debugger).
Sorry, but I haven't been following this closely. When is this going to disappear then?
What is going to replace it? Is it https://developer.mozilla.org/en/SpiderMonkey/JS_Debugger_API_Guide
If so is there a C callable API that can be used and is there equivalent functionality to JSDBGAPI (I'm presuming that there is)?

We are currently using the 1.8.5 build of Spidermonkey.

Thanks


Miles Thornton
Associate  |  Advanced Technology + Research
       
Arup
The Arup Campus  Blythe Gate  Blythe Valley Park  Solihull  West Midlands B90 8AE  United Kingdom
t +44 121 213 3000   d +44 121 213 3308
f +44 121 213 3001  m +44 7720 312104
www.arup.com


____________________________________________________________
Electronic mail messages entering and leaving Arup  business
systems are scanned for acceptability of content and viruses

_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Robin Ehrlich
In reply to this post by Dave Mandelin-2
We also use jsd and jsdbgapi in our embedding. We have a fairly complete GUI
that we use for debugging all of the time. We really need all of the
features in jsd and jsdbgapi to be available via C.


_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Dave Mandelin-2
On Thursday, May 24, 2012 11:54:50 AM UTC-7, Robin Ehrlich wrote:
> We also use jsd and jsdbgapi in our embedding. We have a fairly complete GUI
> that we use for debugging all of the time. We really need all of the
> features in jsd and jsdbgapi to be available via C.

Would your embedding be able to use the new API? It's much nicer and more robust than jsd.

Dave
_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine
Reply | Threaded
Open this post in threaded view
|

Re: What's up with V8 debugger protocol in SpiderMonkey?

Robin Ehrlich
> Would your embedding be able to use the new API? It's much nicer and more
> robust than jsd.
>
> Dave

I have only been following the debugger discussions / design very
sporadically. I assume the new API is available via a C/C++ interface.

I have never liked the jsd and jsdbgapi API very much. It is difficult to
use and doesn't provide all of the features I would like. However, we have
spent a great deal of time getting our debugger to work and therefore we
need backwards compatilibity. Over time, I would like to convert to the new
debugger interface, but this would be a background activity.

Our company loves SpiderMonkey and we use it extensively in our products and
we want to continue to use it. Upgrading to 1.8.5 was a lot of work and
worth it because of the performance improvements. I am not sure upgrading to
a new debugger interface will provide enough new features to justify the
cost. That is why it would need to be a background activity.

Robin


_______________________________________________
dev-tech-js-engine mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-js-engine