Azure / iotedgehubdev

IoT Edge Hub Dev Tool
Other
88 stars 31 forks source link

Unable to start the debugger in single module mode with version 1.4 #416

Open sparraguerra opened 8 months ago

sparraguerra commented 8 months ago

Hi, I'm trying to run debugging in Visual Studio 2022 so I can debug a single module and I'm getting the message "ERROR: -edge-runtime-version '1.4' is not valid." Looking at the iotedgehubdev code, I saw the following lines.

https://github.com/Azure/iotedgehubdev/blob/7eede7286a0603e565c8b183d090f2585521aae6/iotedgehubdev/cli.py#L270

  if edge_runtime_version is not None:
                # The only validated versions are 1.0, 1.1, and 1.2 variants, hence the current limitation
                if re.match(r'^(1\.0)|(1\.1)|(1\.2)', edge_runtime_version) is None:
                    raise ValueError('-edge-runtime-version `{0}` is not valid.'.format(edge_runtime_version))

Would it be possible to add version 1.4? If this were not possible, what would be the cause?

marianan commented 8 months ago

@sparraguerra thanks for flagging this. At this time iotedgehubdev is in maintenance mode, please refer to https://github.com/Azure/iotedgehubdev/issues/396 for more information. For debugging support, please see https://learn.microsoft.com/en-us/azure/iot-edge/debug-module-vs-code?view=iotedge-1.4&tabs=c&pivots=iotedge-dev-cli#debug-a-module-with-the-iot-edge-runtime