JeremyYao commented on issue #1379:
URL: 
https://github.com/apache/daffodil-vscode/issues/1379#issuecomment-3224658889

   ### Origins of the issue
   
   Refer to comment thread in 
https://github.com/apache/daffodil-vscode/pull/1361#issuecomment-3221735007
   
   ### How to replicate the issue (2 ways)
   
   - OS: Windows 10
   - Version: 1.4.2 SNAPSHOT
   
   1. I used the following sample files in here.
   
   
[test_images.zip](https://github.com/user-attachments/files/21990581/test_images.zip)
   
   There is a generated .tdml file in there, but you may want to consider 
generating the .TDML on your own system instead of utilizing the one inside the 
.zip file.
   
   2. Run a DFDL debugging session where you use the GIF DFDL schema and 
toast.gif from the .zip file
   3. Before you hit continue, set breakpoints on the following lines
   
   <img width="447" height="99" alt="Image" 
src="https://github.com/user-attachments/assets/ed8a0844-16d2-4d17-8cb4-12c0e17d5c7f";
 />
   
   4. Click on continue, notice how the breakpoints are being hit
   
   5. Create the TDML file (the option shows up when you have a .dfdl.xsd file 
open)<img width="876" height="760" alt="Image" 
src="https://github.com/user-attachments/assets/380556b4-285b-44db-be68-d0c65668b96e";
 />
   
   6. Open the created .tdml file and select the test case
   
   <img width="1954" height="269" alt="Image" 
src="https://github.com/user-attachments/assets/3868ddbb-1510-437d-8804-2102c85987b9";
 />
   
   7. Hit continue and notice how breakpoints are not being hit. This is the 
first way of replicating the issue
   
   8. For the second way of replicating the issue, open gif.dfdl.xsd and click 
on debug file
   
   <img width="1921" height="649" alt="Image" 
src="https://github.com/user-attachments/assets/ee1af1eb-14e8-4027-b404-28d7c82ed565";
 />
   
   9. Click on continue and observe how breakpoints are not being hit
   
   ### Extra notes
   
   If you execute the TDML via a launch config:
   
   ```JSON
           {
               "request": "launch",
               "type": "dfdl",
               "name": "Wizard Config",
               "schema": {
                   "path": "${command:AskForSchemaName}",
                   "rootName": null,
                   "rootNamespace": null
               },
               "data": "${command:AskForDataName}",
               "debugServer": 4711,
               "infosetFormat": "xml",
               "infosetOutput": {
                   "type": "file",
                   "path": "${workspaceFolder}/target/infoset.xml"
               },
               "tdmlConfig": {
                   "action": "execute",
                   "name": "Default Test Case",
                   "path": "${workspaceFolder}/test_images/mike.tdml"
               },
               "trace": true,
               "stopOnEntry": true,
               "useExistingServer": false,
               "openDataEditor": false,
               "openInfosetView": false,
               "openInfosetDiffView": false,
               "daffodilDebugClasspath": [],
               "dataEditor": {
                   "port": 9000,
                   "logging": {
                       "file": 
"${workspaceFolder}/dataEditor-${omegaEditPort}.log",
                       "level": "info"
                   }
               },
               "dfdlDebugger": {
                   "logging": {
                       "file": "${workspaceFolder}/daffodil-debugger.log",
                       "level": "INFO"
                   }
               }
           }
   
   ```
   
   then breakpoints will get hit


-- 
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