-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to debug module filtermodule created by ioteddev solution init? #620
Comments
It seems like you still need to use the Dockerfile and module.json files to get it debugging: Dockerfile
module.json {
"$schema-version": "0.0.1",
"description": "",
"image": {
"repository": "localhost:5000/app",
"tag": {
"version": "0.0.1",
"platforms": {
"amd64": "./Dockerfile.amd64",
"amd64.debug": "./Dockerfile.amd64.debug"
}
},
"buildOptions": []
},
"language": "csharp"
} then when you run the command: iotedgedev simulator start -b -f deployment.debug.v6.template.json I think it looks at the module.json and builds the dockerfile. This should now allow you to use f5 for debugging. Hope this helps someone else |
We recommend using IoT Edge runtime to debug your edge module. |
This links to the iotedge extension method which Is in maintenance and the cli method seems out of date and what I tried to follow originally |
I am having the same issue trying to debug my module inside the simulator.
The filtermodule doesn't have the Dockerfile.windows-amd64.debug file when created with the iotedgedev solution init
and running dotnet publish --os linux --arch x64 /t:PublishContainer seems to create a production ready container without vsdbg installed
im on a windows machine with linux containers, im actually developing inside the iotedgedev container with the simulator running with the image genearated with dotnet publish --os linux --arch x64 /t:PublishContainer ...
when i f5 i get:
Starting: "docker" exec -i filtermodule sh -c "~/vsdbg/vsdbg --interpreter=vscode"
Error from pipe program 'docker': sh: 1: /home/app/vsdbg/vsdbg: not found
The pipe program 'docker' exited unexpectedly with code 127.
Any ideas?
thank you
The text was updated successfully, but these errors were encountered: