简体   繁体   English

我们可以从 intellij 调试部署的 azure function 吗?

[英]Can we debug deployed azure function from intellij?

I have developed a Java azure function and deployed it through IntelliJ(with Azure toolkit plugin support).我开发了一个 Java azure function 并通过 IntelliJ 部署它(带有 Azure 工具包插件支持)。 I can do local run/debug on the function app from ide, as it nicely supports local run/debug.我可以在 ide 的 function 应用程序上进行本地运行/调试,因为它很好地支持本地运行/调试。

Now the question is, Is there any way to debug code(or jar) that is deployed on Azure function(not sure if this has to be called remote debugging)?现在的问题是,有没有办法调试部署在 Azure 函数上的代码(或 jar)(不确定这是否必须称为远程调试)? I searched through inte.net, was only seeing options to debug the app that is under development in ide(ie, local code), but not able to find a way for deployed version.我搜索了 inte.net,只看到了调试正在开发中的应用程序的选项(即本地代码),但无法找到部署版本的方法。 Is it possible to do this?是否有可能做到这一点? or am I over-expecting from ides?还是我对ides期望过高?

Currently, it is not possible to Remote Debug the function app with Intellij IDE .目前,无法使用 Intellij IDE 远程调试function应用程序。

Here is the workaround I tried to do Remote Debugging of azure Function using Intellij IDE.这是我尝试使用 Intellij IDE 对 azure Function 进行远程调试的解决方法。

After Deploying your function app into azure we can debug using (REMOTE DEBUG) while enabling it into the Azure portal.将 function 应用程序部署到 azure 后,我们可以使用(远程调试)进行调试,同时将其启用到 Azure 门户。 That is possible only in Visual Studio only.这仅在Visual Studio中才有可能。

在此处输入图像描述

After enabling Remote Debug in the Azure portal.在 Azure 门户中启用远程调试后。 The port of related visual studio can enable after enabling this Remote Debugging feature.相关visual studio的端口可以在开启远程调试功能后开启。 I tried to add the Visual Studio debugging port like ( VS19 - 4024 ) remote debugger port assignments & other visual studio port.我尝试添加 Visual Studio 调试端口,例如 ( VS19 - 4024 ) 远程调试器端口分配和其他 Visual Studio 端口。

I end up unable to open the port.我最终无法打开端口。

在此处输入图像描述

Note:笔记:

In Azure except for the 8080/443 port, other ports are blocked in Azure. Azure中除8080/443端口外,Azure中其他端口均被屏蔽。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从 Visual Studio 2022 调试 Azure Function 应用程序 - Debug Azure Function App from Visual Studio 2022 如何从 azure 发布管道查询当前部署到应用程序服务的 docker 图像? - How can I query which docker image is currently deployed to an app service from an azure release pipeline? 部署到 Azure Function App 时跨执行共享的字典值 - Dictionary values shared across executions when deployed to Azure Function App 我们如何增加 Azure 中的 su.net 大小? - How can we increase the subnet size in Azure? 如何以及在何处存储来自部署在 Azure webapp 中的 MVC 应用程序的文件 - How and where to store a file from MVC application that is deployed in Azure webapp 我们可以从管道 azure 突触在无服务器池中执行 sql 查询吗? - can we execute sql query in serverless pool from pipeline azure synapse? 无法从 NodeJS 中的 Azure httpTriggered Function 获取响应数据 - Can not get the data in response from Azure httpTriggered Function in NodeJS 从另一个 Azure Function 呼叫 Azure Function - Calling Azure Function from another Azure Function Azure -- 在本地调试配置了系统标识的 Powershell function - Azure -- debug locally a Powershell function that has System Identity configured 我们能否从 SSM 参数存储中检索值并将其作为输入传递给 AWS 步骤 function? - Can we retrieve the values from SSM parameter store and pass it as an input to AWS step function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM