Skip to content

Instantly share code, notes, and snippets.

@obycode
Created May 18, 2022 19:26
Show Gist options
  • Save obycode/bdec0cd121219c847127520171d84369 to your computer and use it in GitHub Desktop.
Save obycode/bdec0cd121219c847127520171d84369 to your computer and use it in GitHub Desktop.
This is a sample series of DAP packets to test the clarinet DAP debugger
Content-Length: 412
{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"clarinet","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request","seq":1}Content-Length: 304
{"command":"launch","arguments":{"type":"clarinet","request":"launch","name":"Call .foo.bar","manifest":"/home/brice/work/debugger-demo/Clarinet.toml","expression":"(contract-call? .foo hello .bar)","__configurationTarget":5,"__sessionId":"a76fc891-252b-4982-9a2c-3780e76afc50"},"type":"request","seq":2}Content-Length: 219
{"command":"setBreakpoints","arguments":{"source":{"name":"bar.clar","path":"/home/brice/work/debugger-demo/contracts/bar.clar"},"lines":[19],"breakpoints":[{"line":19}],"sourceModified":false},"type":"request","seq":3}Content-Length: 89
{"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":4}Content-Length: 46
{"command":"threads","type":"request","seq":5}Content-Length: 46
{"command":"threads","type":"request","seq":6}Content-Length: 103
{"command":"stackTrace","arguments":{"threadId":0,"startFrame":0,"levels":20},"type":"request","seq":7}Content-Length: 117
{"command":"evaluate","arguments":{"expression":".bar.myVar","frameId":2,"context":"watch"},"type":"request","seq":8}Content-Length: 71
{"command":"scopes","arguments":{"frameId":2},"type":"request","seq":9}Content-Length: 89
{"command":"variables","arguments":{"variablesReference":2000},"type":"request","seq":10}Content-Length: 80
{"command":"disconnect","arguments":{"restart":false},"type":"request","seq":11}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment