You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-visual-studio-develop-module.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@ Now, you have an IoT Edge project and an IoT Edge module in your Visual Studio s
127
127
128
128
In your solution, there are two project level folders including a main project folder and a single module folder. For example, you may have a main project folder named *AzureIotEdgeApp1* and a module folder named *IotEdgeModule1*. The main project folder contains your deployment manifest.
129
129
130
-
The module project folder contains a file for your module code named either `program.cs` or `main.c` depending on the language you chose. This folder also contains a file named `module.json` that describes the metadata of your module. Various Docker files included here provide the information needed to build your module as a Windows or Linux container.
130
+
The module project folder contains a file for your module code named either `Program.cs` or `main.c` depending on the language you chose. This folder also contains a file named `module.json` that describes the metadata of your module. Various Docker files included here provide the information needed to build your module as a Windows or Linux container.
131
131
132
132
### Deployment manifest of your project
133
133
@@ -233,7 +233,7 @@ Typically, you'll want to test and debug each module before running it within an
233
233
234
234
1. Set a breakpoint to inspect the module.
235
235
236
-
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **Program.cs**.
236
+
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **ModuleBackgroundService.cs**.
237
237
* If using C, set a breakpoint in the `InputQueue1Callback()` function in **main.c**.
238
238
239
239
1. Test the module by sending a message. When debugging a single module, the simulator listens on the default port 53000 for messages. To send a message to your module, run the following curl command from a command shell like **Git Bash** or **WSL Bash**.
@@ -289,7 +289,7 @@ After you're done developing a single module, you might want to run and debug an
289
289
290
290
1. Set a breakpoint to inspect the modules.
291
291
292
-
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **Program.cs**.
292
+
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **ModuleBackgroundService.cs**.
293
293
* If using C, set a breakpoint in the `InputQueue1Callback()` function in **main.c**.
294
294
295
295
1. Create breakpoints in each module and then press **F5** to run and debug multiple modules simultaneously. You should see multiple .NET Core console app windows, with each window representing a different module.
Copy file name to clipboardExpand all lines: articles/iot-edge/tutorial-develop-for-linux-on-windows.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ The IoT Edge project template in Visual Studio creates a solution that can be de
233
233
234
234
Now, you have an IoT Edge project and an IoT Edge module in your Visual Studio solution.
235
235
236
-
The module folder contains a file for your module code, named either `program.cs` or `main.c` depending on the language you chose. This folder also contains a file named `module.json` that describes the metadata of your module. Various Docker files provide the information needed to build your module as a Windows or Linux container.
236
+
The module folder contains a file for your module code, named either `Program.cs` or `main.c` depending on the language you chose. This folder also contains a file named `module.json` that describes the metadata of your module. Various Docker files provide the information needed to build your module as a Windows or Linux container.
237
237
238
238
The project folder contains a list of all the modules included in that project. Right now it should show only one module, but you can add more.
239
239
@@ -402,7 +402,7 @@ Typically, you'll want to test and debug each module before running it within an
402
402
403
403
1. Set a breakpoint to inspect the module.
404
404
405
-
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **Program.cs**.
405
+
* If developing in C#, set a breakpoint in the `PipeMessage()` function in **ModuleBackgroundService.cs**.
406
406
* If using C, set a breakpoint in the `InputQueue1Callback()` function in **main.c**.
407
407
408
408
1. The output of the **SimulatedTemperatureSensor** should be redirected to **input1** of the custom Linux C# module. The breakpoint should be triggered. You can watch variables in the Visual Studio **Locals** window.
0 commit comments