I have set up an Azure IoT Edge Module, and it works quite fine when deploying it to a IoT Edge Runtime via Azure.
However, I am not able to find a way how to interact with the module while locally debugging it. What I need to do is to invoke direct methods on it and modify the module twin while it's running.
Additionally I have the question: Where does the Local debugging Module actually connect to? Does it open a connection to the Azure IoT Edge Device using the connection string configured in the "IoT Edge Tools" in Visual Studio? At least it does not seem so, since it does not read the settings of the Module Twin from Azure IoT Hub.
Other Question: On an Edge solution in Visual Studio , when I right click on the Project Node, I have the possibility to "Build and Push the Module" to Azure Container Registry, and to run it in the Simulator. I assume that running it in the simulator is not the same like debugging it?
Thank you very much in advance!