arosien commented on issue #844:
URL: 
https://github.com/apache/daffodil-vscode/issues/844#issuecomment-1885845304

   FYI the DAP protocol sequence looks like this:
   - breakpoint hit
   - extension request `threads`
   - for each thread, request `stackTrace` for `threadId` (there is only one 
thread in a Daffodil session)
   - for each `frameId` of a stacktrace, request `scopes` which fetches the 
relevant variables for the scope
   
   ```
   2024-01-10 14:25:46,160 [io-compute-3] INFO  o.a.d.d.d.DAPSession - <E 
stopped breakpoint 
   2024-01-10 14:25:46,162 [io-compute-2] INFO  o.a.d.d.d.DAPSession - R> #302 
threads null 
   2024-01-10 14:25:46,162 [io-compute-7] INFO  o.a.d.d.d.DAPSession - <R #302 
threads success {"threads":[{"id":1,"name":"daffodil"}]} 
   2024-01-10 14:25:46,164 [io-compute-2] INFO  o.a.d.d.d.DAPSession - R> #303 
stackTrace {"threadId":1,"startFrame":0,"levels":20} 
   2024-01-10 14:25:46,164 [io-compute-2] INFO  o.a.d.d.d.DAPSession - <R #303 
stackTrace success 
{"stackFrames":[{"id":348,"source":{"name":"pcap.dfdl.xsd","path":"/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd","sourceReference":0},"line":168,"column":0,"name":"Ethernet"},{"id":347,"source":{"name":"pcap.dfdl.xsd","path":"/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd","sourceReference":0},"line":155,"column":0,"name":"LinkLayer"},{"id":341,"source":{"name":"pcap.dfdl.xsd","path":"/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd","sourceReference":0},"line":128,"column":0,"name":"Packet"},{"id":2,"source":{"name":"pcap.dfdl.xsd","path":"/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/pcap/xsd/pcap.dfdl.xsd","sourceReference":0},"line":36,"column":0,"name":"PCAP"},{"id":1,"source":{"name":"pcap.dfdl.xsd","path":"/Users/arosien/nteligen/PCAP/src/main/resources/com/tresys/
 
pcap/xsd/pcap.dfdl.xsd","sourceReference":0},"line":36,"column":0,"name":"PCAP"}],"totalFrames":5}
 
   2024-01-10 14:25:46,572 [io-compute-0] INFO  o.a.d.d.d.DAPSession - R> #304 
scopes {"frameId":348} 
   2024-01-10 14:25:46,572 [io-compute-1] INFO  o.a.d.d.d.DAPSession - <R #304 
scopes success 
{"scopes":[{"name":"Parse","variablesReference":4165,"expensive":false},{"name":"Schema","variablesReference":4166,"expensive":false},{"name":"Data","variablesReference":4167,"expensive":false}]}
 
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to