https://github.com/loyieking/debugadapterprotocol.net
Visual Studio Code DebugAdapterProtocol written in C#
https://github.com/loyieking/debugadapterprotocol.net
csharp dap debug debugadapterprotocol dotnet dotnet-core dotnet-standard extension lsp visual-studio-code vscode
Last synced: 2 months ago
JSON representation
Visual Studio Code DebugAdapterProtocol written in C#
- Host: GitHub
- URL: https://github.com/loyieking/debugadapterprotocol.net
- Owner: LoyieKing
- Created: 2019-11-20T05:02:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:25:17.000Z (over 3 years ago)
- Last Synced: 2026-04-04T01:43:06.702Z (2 months ago)
- Topics: csharp, dap, debug, debugadapterprotocol, dotnet, dotnet-core, dotnet-standard, extension, lsp, visual-studio-code, vscode
- Language: C#
- Size: 167 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DebugAdapterProtocol.NET
Visual Studio Code DebugAdapterProtocol written in C#(.NET Standard)
## Usage
```C#
Server = new ProtocolServer(InputStream,OutputStream);
Server
.RegisterProtocolMessage(OnInitialize)
.RegisterProtocolMessage(OnDisconnect)
.RegisterProtocolMessage(OnLaunch)
.RegisterProtocolMessage(OnSetBreakpoints)
.RegisterProtocolMessage(OnSetExceptionBreakpoints)
.RegisterProtocolMessage(OnConfigurationDone)
.RegisterProtocolMessage(OnSource)
.RegisterProtocolMessage(OnThreads)
.RegisterProtocolMessage(OnStackTrace)
.RegisterProtocolMessage(OnScopes)
.RegisterProtocolMessage(OnVariables)
.RegisterProtocolMessage(OnEvaluate)
.RegisterProtocolMessage(OnContinue)
.RegisterProtocolMessage(OnNext)
.RegisterProtocolMessage(OnStepIn)
.RegisterProtocolMessage(OnPause)
.Start().Wait()
;
```
```C#
private void OnInitialize(ProtocolServer server, InitializeRequest request)
{
Capabilities capabilities = new Capabilities(
supportsSetVariable: true,
supportsRestartRequest: false,
supportsEvaluateForHovers:false,
supportsConfigurationDoneRequest:true,
supportsFunctionBreakpoints:true
);
InitializeResponse response = new InitializeResponse(request, true, capabilities);
server.SendMessage(response);
}
```
## TODO
- [ ] Add OnRequestDelegateHandler and OnRequestHandler
- More...