Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
JSDT/Debug/Rhino/Rhino Debug Wire Protocol
JSDT Debug | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug Day | |
Contribute | |
Browse Source • Project Set File |
Contents
Overview
The Rhino Debug Wire Protocol (RDWP) is an adapted version of the v8 protocol using JSON to communicate with the remote Rhino debugger.
The RDWP was chosen to be JSON-based for a few reasons:
- It can be more easily extended to add new events, requests or responses.
- It is easier to understand by consumers
- It follows the de-facto JSON standard, which could allow it to communicate with other JSON-based efforts.
Packets
The RDWP performs all communication with the remote debugger using packets over a socket. The payload of each packet is the JSON string describing the event, request or response with a preamble containing the content length and a line terminator.
For example all packets follow the general form:
<content_length> \r\n\ { "type":<packet_type>, "seq":<integer>, "running":<is_running>, "success":<success_status>, "body":{} }