You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/03/04 19:23:00 UTC

[GitHub] [daffodil-vscode] arosien edited a comment on issue #66: Multi-file Breakpoint

arosien edited a comment on issue #66:
URL: https://github.com/apache/daffodil-vscode/issues/66#issuecomment-1059447999


   I wasn't able to trigger a breakpoint at EDIFACT-SupplyChain-Segments-D.03B.xsd line 292 (under complexType`GIR-RelatedIdentificationNumbers`), but looking at the expected infoset for INVOIC_D.03B_Interchange_with_UNA.txt I don't see any `GIR` output.
   
   If instead I put a breakpoint at complex type `NAD-NameAndAddress` (EDIFACT-SupplyChain-Segments-D.03B.xsd:378; note this is the complexType tag, _not_ an element tag; also note that there are no breakpoints set in the -Segments* file), then a breakpoint **is** triggered:
   
   <img width="1402" alt="_Extension_Development_Host__-_EDIFACT-SupplyChain-Messages-D_03B_xsd_—_sampleWorkspace_and_logging_scala_—_daffodil-vscode" src="https://user-images.githubusercontent.com/31163/156827564-49132349-7014-4c1a-af59-628a49e30478.png">
   
   Note that the _encountered breakpoint_ is at the point where the "outer" schema (-Messages*) references the "inner" schema (-Segments) where the breakpoint is _defined_. Yes, this is somewhat weird, but the debugger is just relying on the location information from the Daffodil layers.
   
   So it seems we can break on external type definitions (only) when they match, and the referenced breakpoint location is at the use site, not the declaration site.
   
   Any thoughts?


-- 
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: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org