Skip to content
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

Add steps for debug Edge Hub using VS in README.md #314

Merged
merged 10 commits into from
Sep 19, 2018
13 changes: 12 additions & 1 deletion edge-hub/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# Edge Hub
This project contains the Edge Hub.
This project contains the Edge Hub.

## How to debug Edge Hub using Visual Studio
1. Update following values in appsettings_agent.json in Microsoft.Azure.Devices.Edge.Hub.Service project.
* `IotHubConnectionString` - Edge Hub module connection string; set it as edge device connection string appending with "ModuleId=$edgeHub".
* `configSource` - Set it as `twin` to read confirm from twin, or `local` to read Edge Hub config from configuration file.
2. Set following environment variables to point to the path of a SSL Certificate; for debug purpose, you can [create](https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-certs-create#create-a-new-self-signed-certificate) and use a self-signed certificate.
* `SSL_CERTIFICATE_NAME` - certificate file name.
* `SSL_CERTIFICATE_PATH` - path of folder containing the certificate.
3. Set Microsoft.Azure.Devices.Edge.Hub.Service as startup project in Visual Studio.
4. Make sure to rebuild the solution.
5. You can start debugging Edge Hub by hit F5 in Visual Studio.