Replies: 6 comments 6 replies
-
I don't yet have any of prototype of the extension checked in, but I had followed the instructions at Debugger Extension, The Mock Debug Extension which uses the microsoft/vscode-mock-debug project. The only change I've made to my local vscode-mock-debug is: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "mock",
"request": "launch",
"name": "Debug test.md",
"program": "${workspaceFolder}/test.md",
"stopOnEntry": true,
"trace": false,
+ "debugServer": 4711
}
]
} To override the debugging session to talk to a locally running So to run the
|
Beta Was this translation helpful? Give feedback.
-
FYI #15 tracks how our adapter receives the debug target from the extension. |
Beta Was this translation helpful? Give feedback.
-
Packaging experiments based on the mock plugin are going to be here https://github.com/jw3/example-daffodil-vscode Same approach as this repo, initial experiments in there and then we will distill a clean first release for the Apache repo later. |
Beta Was this translation helpful? Give feedback.
-
@jw3, do you have any tasks or progress on the extension? No pressure, I just want to stay aware of anything you've done. So far I've seen some Daffodil + DAPodil packaging, which I'm assuming is going to be used by the extension. I think #15 is probably the most critical on my end (passing schema and data file to DAPodil; it's currently hard-coded). |
Beta Was this translation helpful? Give feedback.
-
I wasn't looking at that this week, rather like you saw was heading down the road of getting extension and backend bundled, that was the packaging work. re: #15, consider an approach like in 9844e3e, we can use After copying the schema and data into the vscode workspace the launch profile program arg looks like
Otherwise, I wont be doing a dialog for entry any time soon, so if you want to impl that for #15 go ahead I wont mind. 😄 ... After typing this up I thought why split a string, just add a |
Beta Was this translation helpful? Give feedback.
-
Maybe rename program to schema though... Eh, it requires a bit more modification, going to leave it as program for now, but make a note of that changing. |
Beta Was this translation helpful? Give feedback.
-
The biggest unknown I have after getting the barest Daffodil-DAP-VSCode pipeline flowing is how to package it into an extension. I'm currently running Daffodil as a separate process on a known port, and attaching VS Code to it in a fairly direct way.
The way it should work is different: you have the extension installed and are looking at a schema file, then you launch a parse of some data as a debugging session, and the extension fires up Daffodil in the background. (Or at least that's how I'm imagining it.) What do you think?
So we need some time to be spent to learn how extension packaging works. Need to decide on prioritizing this vs. other things.
Beta Was this translation helpful? Give feedback.
All reactions