Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protocol Server via stdio? #59

Open
pcj opened this issue Aug 2, 2021 · 1 comment
Open

Protocol Server via stdio? #59

pcj opened this issue Aug 2, 2021 · 1 comment

Comments

@pcj
Copy link

pcj commented Aug 2, 2021

It appears straightforward to use this as a vscode.DebugAdapterServer (e.g localhost:4711), but also looking to use this for a vscode.DebugAdapterExecutable that uses stdin/stdout for the protocol communication. Is is supported? Example?

@polinasok
Copy link
Contributor

This repo offers a way decode DAP-encoded bytes into Go types and back. The io library operates on bufio.Reader and io.Writer interface, which don't specify where the bytes are coming from (network connection, stdin/out, etc). Unfortunately, we currently only have a server connection example, but we would welcome a PR with a stdin/stdout example. For example, you could use bufio.NewReader(os.Stdin).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants