Open Bug 1267436 Opened 8 years ago Updated 2 years ago

Rust API for Debugger instances

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jimb, Unassigned)

References

(Blocks 2 open bugs)

Details

So that Servo can use SpiderMonkey's debugging API, SpiderMonkey should provide a Rust API for working with Debugger instances.
Blocks: 1263289
Severity: normal → enhancement
Whiteboard: [devtools-html]
Can you detail what do you mean by a "Rust API", from what I understand the Debugger API is made to be used from JS, how would it be different?  Is there any reasons to have a different API for Servo than the one we used for Gecko?
I certainly don't intent to ask a Rust API directly in SpiderMonkey, but I would like us to avoid having to host JS code to debug JS code. Given that the Debugger API is written in C++, it makes sense to me that we should be able to use it directly from C++.
(In reply to Nicolas B. Pierron [:nbp] from comment #1)
> Can you detail what do you mean by a "Rust API", from what I understand the
> Debugger API is made to be used from JS, how would it be different?  Is
> there any reasons to have a different API for Servo than the one we used for
> Gecko?

See bug 1263317 -- the summary is that Servo doesn't want to ever support privileged JS, so the existing way we provide an interface to Debugger (via a JS interface in privileged compartments) is not going to fly. Instead, we are adding an alternative interface to the same Debugger infrastructure for Servo's use.
Yeah, this discussion belongs on bug 1263317, let's continue it there if necessary.
Flags: qe-verify-
Priority: -- → P2
No longer blocks: 1263289
Blocks: 1263289
Whiteboard: [devtools-html]
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.