Use the DevTools Protocol to instrument, inspect, debug, and profile browsers including Microsoft Edge. The Microsoft Edge DevTools Protocol matches the APIs of the Chrome DevTools Protocol. For reference documentation, go to Chrome DevTools Protocol Viewer.
Note
With the shift in the underlying web platform of Microsoft Edge to Chromium, the Microsoft Edge (EdgeHTML) DevTools Protocol won't be receiving any further updates. Going forward, the Microsoft Edge DevTools Protocol will match the APIs of the Chrome DevTools Protocol.
To attach a custom tooling client to the DevTools Server in Microsoft Edge:
Close all instances of Microsoft Edge.
Launch Microsoft Edge with the remote debugging port.
shell
msedge.exe --remote-debugging-port=9222
Optionally, you can start a separate instance of Microsoft Edge using a distinct user profile.
shell
msedge.exe --user-data-dir=<some directory>
Next, use the HTTP list endpoint to get a list of attachable page targets.
HTTP
http://localhost:9222/json/list
Finally, connect to the webSocketDebuggerUrl of the desired target and issue commands/subscribe to event messages through the DevTools web socket server.
DevTools Protocol HTTP endpoints
The Microsoft Edge DevTools Protocol supports the following HTTP endpoints.
/json/version
Provides information on the browser of the host machine and which version of the DevTools Protocol it supports.
The Remote Tools for Microsoft Edge (Beta) uses the same Microsoft Edge DevTools Protocol as DevTools to communicate with Microsoft Edge running on the Windows 10 or later device you want to debug. This app just prepends /msedge/ and a process ID (pid) before each call to the protocol. It supports the following HTTP endpoints.
The following Reference sections are for Remote Tools for Microsoft Edge.
/msedge/json/deviceinfo
Provides information about the Windows PC or HoloLens 2 device connected for remote debugging.
Parameters
None.
Return object
JSON
{
"deviceName": "WINDOWS-10-DEV"
}
/msedge/json/list
Provides a candidate list of all Microsoft Edge and WebView2 Runtime processes running on the connected device (including PWAs) and all tabs or targets in each process available for debugging.
Provides the entire protocol API surface serialized as JSON for the Microsoft Edge instance that matches the provided [pid].
Parameters
None.
Return object
JSON object which represents the available API surface for the version of the protocol that the Microsoft Edge instance that matches the provided [pid] is using.
Edge brings enterprise-ready security, privacy, and manageability controls, making it the best browser for business across PC, Mac, and mobile devices. Explore options to deploy Microsoft Edge to hundreds or thousands of devices at scale.