Dev Containers : Dows it support DEE debugging?
Hi Cornalious,
Yes! Debugging the host container is supported when using dev containers in VS Code. There’s some configuration in the .vscode/launch.json file that configures this. In mine, it looks like the excerpt below. Once this is setup, you simply select “Attach Host Container” on the “Run and Debug” tab in VS Code. It’ll attach to the container. You may be prompted to install some debugging stuff into the container. Confirm that and you’ll be on your way.
{
“version”: “0.2.0”,
“configurations”: [
{
“name”: “Attach Host Container”,
“platform”: “netCore”,
“request”: “attach”,
“sourceFileMap”: {
“/src”: “${workspaceFolder}”
},
“containerName”: “custom_host”,
“type”: “docker”
}
]
}
Hi Ben,
Thanks for your inputs. So this will allow the debugging of the Backend API Project Rist? Will it support the DEEs to debugged?
Thanks,
Simon C
Hi Simon.
I’m not sure what you mean by the “Backend API Project”. The debugger will be attached to the host container. So, any code running in MES host will be debuggable for you.
As for DEE actions. In my customization project, DEE actions are loaded as part of the master data. The implication is that DEE Action code is data and not code. So, it’s not directly debuggable. What you can do is modify the DEE Action code in the MES to directly call your DEE action code in your customization DLL. Let me know if you need more information on this.
Hi Ben, yes you are right. I am aware about this route to modify the DEE action to call the Action DLL to debug the DEE but till CM V9 we had a Visual studio extension which will take care of this process and make the DEE available for debug. I was checking if any such support added in DevContainers recently using which we can debug without modifying the DEE.
Hi Simon,You’re right. Currently, It still has not been ported to VSCode as it’s not a very straightforward port it depends a lot on the API provided by Visual Studio. I know it’s in the backlog, so it should be a matter of time.
Thanks for the update Joao