SharpDbg 是一款支持 Debug Adapter Protocol 的 .NET 托管代码调试器,完全采用 C#/.NET 实现。
SharpDbg 是一款支持 Debug Adapter Protocol 的 .NET 托管代码调试器,完全采用 C#/.NET 实现。
An open source, cross platform .NET debugger implementing the VS Code Debug Adapter Protocol (DAP), completely written in C#!
SharpDbg uses the ClrDebug managed wrapper around the ICorDebug APIs.
SharpDbg is available on NuGet as a .NET Tool: https://www.nuget.org/packages/SharpDbg.Cli
dotnet tool install --global SharpDbg.Cli Once installed, run it using:
sharpdbg --interpreter=vscodeThe in memory library is also published to NuGet: https://www.nuget.org/packages/SharpDbg
| SharpDbg | netcoredbg | |
|---|---|---|
| Implementation | C# | C++ with interop to C# where necessary |
| Cross Platform | ✅ | ✅ |
| Expression Evaluation | ✅ | ✅ |
| DebuggerBrowsable Support | ✅ | ✅ |
| DebuggerDisplay Support | ✅ | ❌ |
| DebuggerTypeProxy Support | ✅ | ❌ |
SharpDbg is organized into three main components:
…dotnet buildThis will produce the debug adapter executable at artifacts/bin/SharpDbg.Cli/Debug/net10.0/SharpDbg.Cli.exe, equivalent to netcoredbg.exe
[DebuggerDisplay("Count = {Count}")]
public class List : IList, IList, IReadOnlyList [DebuggerTypeProxy(typeof(ICollectionDebugView<>))]
public class List : IList, IList, IReadOnlyList暂无开放 Issues,或尚未同步最近议题。