Cloud Explorer等效调试VS2022用于上传到存储的Zipped已发布的代码?

发布于 2025-02-13 12:34:28 字数 1015 浏览 0 评论 0原文

nofollow noreferrer“> vs2022中的云资源a>我发布&将代码汇总并将其上传到私有Azure存储帐户中的Azure,然后运行函数应用程序(从软件包文件运行)。我该如何像以前与克洛尔德探险家一样进行调试?

发布不提供托管选项。 href =“ https://stackoverflow.com/questions/69549657/visual-studio-2022-debug-on-remote-azure-server”> stackoverflow答案不对我有用。另外,我已经将函数应用程序连接到了连接的服务,然后单击“附加调试器”,但是执行后它不会停止代码,即逐步代码进行调试,无法像Cloud Explorer一样工作。

Cloud explorer in VS2022 has been removed. 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). How can I debug remotely like I used to do with clould explorer?

Publish does not offer the Hosting option. so the Stackoverflow answers don't work for me. 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, i.e. step-in code to debug doesn't work like Cloud Explorer did.

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

莫相离 2025-02-20 12:34:28

部署后检查一些设置。

  1. 检查远程调试即将在Azure Portal上进行,并选择远程Visual Studio版本(如果未选择)。

“在此处输入图像说明”

  1. 访问Visual Studio and Gote Took Tool,然后选择“获取工具和功能”。您只需要进行Azure开发即可。如果未安装此存储模拟器后,自动安装了该模拟器,请访问Microsoft网站并安装此。
    “在此处输入图像说明”

  2. 如果已安装,则可以使用此命令来运行它。 azurestorageemulator.exe start。有关由Microsoft文档


  3. 将配置从发行版更改为调试。
    “在此处输入图像说明”

  1. 在CMD下方启动Azure存储模拟器。如果未安装在您的系统中单击此处从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>
  1. 检查是否连接了存储模拟器显示。
    “在此处输入图像说明”

  2. 然后添加visiual Studio和Run Run函数上的Break Point。它正在工作,
    “在此处输入图像说明”

使用此选项远程连接调试。因为在Visual Studio 2022中未显示Cloud Explorer。
“在此处输入图像说明”

After deployment checks some settings.

  1. Check Remote debugging is ON on azure portal and Select the Remote Visual Studio version, if not selected.

enter image description here

  1. Go to visual studio and go-to tool and select get tool and features. You just need to take Azure development. after this Storage Emulator is automatically installed if not installed go to the Microsoft site and install this.
    enter image description here

  2. If installed you can run it by using this command. AzureStorageEmulator.exe start. More information about Azure Storage Emulator for Development and testing by Microsoft Document on

  3. Change Configuration from Release to Debug.
    enter image description here

enter image description here

  1. Start Azure Storage Emulator below cmds. if not installed in your system click here to Download from the Microsoft site.
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>
  1. Check whether Storage Emulator show is connected or not.
    enter image description here

  2. Then add break point on visiual studio and run function . it's working,
    enter image description here

Using this option to attach debug remotely. because in visual studio 2022 not show Cloud Explorer.
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文