JeremyYao commented on PR #1414:
URL: https://github.com/apache/daffodil-vscode/pull/1414#issuecomment-3293011559
Tested via JPG file
Configurations used:
```JSON
{
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"type": "dfdl",
"name": "npg",
"schema": {
"path": "${workspaceFolder}/jpeg.dfdl.xsd",
"rootName": null,
"rootNamespace": null
},
"data": "${workspaceFolder}/super_small.jpg",
"debugServer": 4713,
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
},
"tdmlConfig": {
"action": "generate",
"path": "/tmp/generatedTDML.tdml",
"name": "Default Test Case"
},
"trace": true,
"stopOnEntry": true,
"useExistingServer": false,
"openDataEditor": true,
"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"
}
}
},
{
"request": "launch",
"type": "dfdl",
"name": "jpg_execute",
"schema": {
"path": "${workspaceFolder}/jpeg.dfdl.xsd",
"rootName": null,
"rootNamespace": null
},
"data": "${workspaceFolder}/super_small.jpg",
"debugServer": 4713,
"infosetFormat": "xml",
"infosetOutput": {
"type": "file",
"path": "${workspaceFolder}/target/infoset.xml"
},
"tdmlConfig": {
"action": "execute",
"name": "Default Test Case"
},
"trace": true,
"stopOnEntry": true,
"useExistingServer": false,
"openDataEditor": true,
"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"
}
}
}
]
}
```
When I run debugging config `jpg_execute`, a file prompt pops up
<img width="1013" height="926" alt="image"
src="https://github.com/user-attachments/assets/bb790125-42fd-427e-8a61-8bd9400eb776"
/>
My TDML I try to execute is
```XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns1:testSuite xmlns:ns1="http://www.ibm.com/xmlns/dfdl/testData"
suiteName="Default Test Case" defaultRoundTrip="onePass">
<ns1:parserTestCase name="Default Test Case" root="file"
model="jpeg.dfdl.xsd" roundTrip="onePass" description="Generated by DFDL VSCode
Extension">
<ns1:document>
<ns1:documentPart type="file">
super_small.jpg
</ns1:documentPart>
</ns1:document>
<ns1:infoset>
<ns1:dfdlInfoset type="file">
target/infoset.xml
</ns1:dfdlInfoset>
</ns1:infoset>
</ns1:parserTestCase>
</ns1:testSuite>
```
The following error pops up.
--
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]