[英]Cloud Explorer Equivalent Debug VS2022 for zipped published code uploaded to storage?
Cloud explorer in VS2022 has been removed. VS2022 中的云资源管理器已被删除。 I publish & zip the code and upload it to Azure in a private azure storage account that then runs Function Apps (running from a package file).
我发布并压缩代码并将其上传到 Azure 中的私有 azure 存储帐户,然后运行 Function Apps(从包文件运行)。 How can I debug remotely like I used to do with clould explorer?
如何像以前使用 cloud explorer 一样进行远程调试?
Publish does not offer the Hosting option. Publish 不提供托管选项。 so the Stackoverflow answers don't work for me.
所以Stackoverflow 的答案对我不起作用。 Also I have connected the Function App to Connected Services and I click on Attach debuger but it does not stop the code when executed, ie step-in code to debug doesn't work like Cloud Explorer did.
此外,我已将函数应用程序连接到连接的服务,然后单击附加调试器,但它不会在执行时停止代码,即调试的步入代码不像 Cloud Explorer 那样工作。
After deployment checks some settings.部署后检查一些设置。
Go to visual studio and go-to tool and select get tool and features.转到 Visual Studio 和转到工具,然后选择获取工具和功能。 You just need to take Azure development.
您只需要进行 Azure 开发。 after this Storage Emulator is automatically installed if not installed go to the Microsoft site and install this.
如果未安装此 Storage Emulator 会自动安装后,请转到 Microsoft 站点并安装它。
If installed you can run it by using this command.如果已安装,您可以使用此命令运行它。
AzureStorageEmulator.exe start
. AzureStorageEmulator.exe start
。 More information about Azure Storage Emulator for Development and testing by Microsoft Document on Microsoft 文档中有关用于开发和测试的 Azure 存储模拟器的更多信息
Change Configuration from Release to Debug.将配置从发布更改为调试。
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe
Windows Azure Storage Emulator 5.10.0.0 command line tool
Error: Expected command as first argument.
Usage:
AzureStorageEmulator.exe init : Initialize the emulator database and configuration.
AzureStorageEmulator.exe start : Start the emulator.
AzureStorageEmulator.exe stop : Stop the emulator.
AzureStorageEmulator.exe status : Get current emulator status.
AzureStorageEmulator.exe clear : Delete all data in the emulator.
AzureStorageEmulator.exe help [command] : Show general or command-specific help.
See the following URL for more command line help: http://go.microsoft.com/fwlink/?LinkId=392235
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start
Windows Azure Storage Emulator 5.10.0.0 command line tool
Autodetect requested. Autodetecting SQL Instance to use.
Looking for a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found a LocalDB Installation.
Probing SQL Instance: '(localdb)\MSSQLLocalDB'.
Found SQL Instance (localdb)\MSSQLLocalDB.
Creating database AzureStorageEmulatorDb510 on SQL instance '(localdb)\MSSQLLocalDB'.
Granting database access to user FAREAST\v-pusharma.
Database access for user FAREAST\v-pusharma was granted.
Initialization successful. The storage emulator is now ready for use.
Error: Unable to start the storage emulator.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>netstat -p tcp -ano | findstr :10000
TCP 127.0.0.1:10000 0.0.0.0:0 LISTENING 9764
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>taskkill /F /PID 9764
SUCCESS: The process with PID 9764 has been terminated.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe start
Windows Azure Storage Emulator 5.10.0.0 command line tool
The storage emulator was successfully started.
C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>
Check whether Storage Emulator show is connected or not.检查 Storage Emulator show 是否已连接。
Then add break point on visiual studio and run function .然后在视觉工作室添加断点并运行功能。 it's working,
它正在工作,
Using this option to attach debug remotely.使用此选项远程附加调试。 because in visual studio 2022 not show Cloud Explorer.
因为在 Visual Studio 2022 中不显示 Cloud Explorer。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.