首页 > 解决方案 > How to stop an Azure function running locally my windows 10 environment

问题描述

I am creating an Azure function in java and running locally as of now referring this exmaple https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-java-maven. I am able to run it successfully. Maven commands have package,run which runs the function on my windows 10.

The only way I know now to stop the function is kill the process in Task manager. There should be a better way to do this.

Any help is appreciated.

标签: eclipseazureazure-functions

解决方案


在 Eclipse 中,Console 上的按钮是终止 JVM,对使用 mvn 插件启动Terminate的外部工具没有影响。func.exe

找到两个解决方法供您参考。为方便起见,首先安装插件TM Terminal(在 Help>Eclipse Marketplace 中搜索)。

  1. 使用命令行终止进程。右键单击项目>在本地终端中显示>终端,输入TASKKILL /IM func.exe /T /Fkill func.exe

  2. 在终端中运行函数,因此我们可以终止它。

    1)。右键单击项目>在本地终端中显示>终端

    2)。输入mvn azure-functions:run

    3)。输入Ctrl+CY终止功能。

    4)。要调试,mvn azure-functions:run -DenableDebug请在终端中运行,然后按照教程所述配置调试。

如果可以接受,我们可以求助于 IntelliJ IDEA,我们可以在其中一键终止进程。


推荐阅读