JeremyYao commented on PR #1368: URL: https://github.com/apache/daffodil-vscode/pull/1368#issuecomment-3207540720
### How I tested this 1. Pull down https://github.com/ctc-oss/daffodil-vscode/tree/jy/634 2. Open launch.Json under `.vscode\launch.json` 3. Click on the blue "Add Configuration..." on the bottom right and select `Daffodil Debug: Launch` <img width="2091" height="763" alt="image" src="https://github.com/user-attachments/assets/2856a572-6c6f-4819-a30b-fdb17333fd1c" /> 4. You should see the following JSON object get inserted in `"configurations"` ```JSON { "type": "dfdl", "request": "launch", "name": "Ask for file name", "schema": { "path": "${command:AskForSchemaName}", "rootName": null, "rootNamespace": null }, "data": "${command:AskForDataName}", "stopOnEntry": true, "infosetFormat": "xml", "infosetOutput": { "type": "file", "path": "${workspaceFolder}/target/infoset.xml" }, "tdmlConfig": { "action": "generate" }, "debugServer": 4711, "openDataEditor": false, "openInfosetView": false, "openInfosetDiffView": false, "daffodilDebugClasspath": [], "variables": {}, "tunables": {}, "dataEditor": { "port": 9000, "logging": { "file": "${workspaceFolder}/dataEditor-${omegaEditPort}.log", "level": "info" } }, "dfdlDebugger": { "logging": { "level": "INFO", "file": "${workspaceFolder}/daffodil-debugger.log" } } } ``` 5. Run the "Ask for file name" debugging config <img width="1047" height="739" alt="image" src="https://github.com/user-attachments/assets/fa22894f-2d07-436b-a6b7-d725da9c7262" /> 6. Select a sample DFDL file and data file as prompted. I usually use https://github.com/DFDLSchemas/GIF/blob/master/src/main/resources/com/mitre/gif/xsd/gif.dfdl.xsd and a GIF file found online. 7. Click on continue during the debugging session and check to see if an infoset was written in your workspace under target folder <img width="288" height="163" alt="image" src="https://github.com/user-attachments/assets/d6d1dd17-4172-491e-b4f3-120630ac9a4e" /> <img width="592" height="42" alt="image" src="https://github.com/user-attachments/assets/c9d55be0-6e52-4c4a-a5b8-ea3009b68b9a" /> -- 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]
