RepoMicrosoftMicrosoftpublished Feb 11, 2020seen 2d

microsoft/vscode-cdp-proxy

TypeScript

Open original ↗

Captured source

source ↗
published Feb 11, 2020seen 2dcaptured 2dhttp 200method plain

microsoft/vscode-cdp-proxy

Description: Sample Chrome Debug Protocol proxy used to extend vscode-js-debug

Language: TypeScript

License: MIT

Stars: 15

Forks: 4

Open issues: 1

Created: 2020-02-11T02:09:50Z

Pushed: 2026-06-24T02:59:16Z

Default branch: main

Fork: no

Archived: no

README:

vscode-cdp-proxy

Sample Chrome Debug Protocol proxy used to extend vscode-js-debug with custom targets. This can be used to allow js-debug to work with esoteric targets, like WebAssembly-compiled and frameworks like React Native. Say you're building a React Native debugger. The general flow would work like so:

![](./example.png)

1. You have a React Native extension, which allows users to start debugging via a command or a launch config. 2. When a session starts, you start a CDP proxy, like the one in this repo. Say it starts listening on localhost:3000 3. Then, you call `vscode.debug.startDebugger` with a configuration like:

{
"type": "pwa-chrome",
"request": "attach",
"address": "localhost", // <- host your proxy is running on
"port": 3000, // <- port your proxy is running on
}

4. The debugger will then connect to the proxy like it would any other CDP-enabled target. 5. Finally, you translate between CDP and the protocol used to debug your target application. In the case of React Native, this is might be a minimal rewrite of some CDP behavior. In the case of more advanced WebAssembly targets, you might translate into something entirely new.

Using this Package

Parts of this package are exported from js-debug. We may publish these parts as nicely packaged bits for reuse here and in the extension, but that's not done right now.

Check out demo.js for an example of a server.

Notability

notability 3.0/10

Routine developer tool repo with low traction.