- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Cloud explorer in VS2022 has been removed.我发布并压缩代码,并将其上传到 Azure 的私有(private) Azure 存储帐户中,然后运行 Function Apps(从包文件运行)。如何像以前使用云资源管理器一样进行远程调试?
Publish does not offer the Hosting option.所以Stackoverflow answers别为我工作。此外,我已将函数应用程序连接到连接的服务,然后单击“附加调试器”,但它在执行时不会停止代码,即用于调试的单步调试代码不像 Cloud Explorer 那样工作。
最佳答案
部署后检查一些设置。
转到 Visual Studio 和转到工具,然后选择获取工具和功能。您只需要进行 Azure 开发即可。如果未安装此存储模拟器,则自动安装后,请访问 Microsoft 站点并安装它。
如果已安装,您可以使用此命令运行它。 AzureStorageEmulator.exe 启动
。有关 Azure Storage Emulator for Development and testing 的更多信息通过 Microsoft 文档
将配置从发布更改为调试。
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>
检查Storage Emulator show是否已连接。
然后在visiual studio上添加断点并运行函数。它正在工作,
使用此选项远程附加调试。因为在 Visual Studio 2022 中不显示 Cloud Explorer。
关于azure - Cloud Explorer 相当于调试 VS2022 用于上传到存储的压缩发布代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72894799/
我是一名优秀的程序员,十分优秀!