-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add steps for debug Edge Hub using VS in README.md (#314)
Add steps for debug Edge Hub using VS
- Loading branch information
1 parent
950a93a
commit 2937124
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# Edge Hub | ||
This project contains the Edge Hub. | ||
This project contains the Edge Hub. | ||
|
||
## How to debug Edge Hub using Visual Studio | ||
1. Set environment variable `EdgeModuleHubServerCertificateFile` to the path of a SSL Certificate file (e.g. C:\edgeDevice.pfx); 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. Remember to restart Visual Studio to take effect. | ||
2. Update following values in appsettings_hub.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. | ||
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. |