eclipse - 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.
解决方案
在 Eclipse 中,Console 上的按钮是终止 JVM,对使用 mvn 插件启动Terminate
的外部工具没有影响。func.exe
找到两个解决方法供您参考。为方便起见,首先安装插件TM Terminal
(在 Help>Eclipse Marketplace 中搜索)。
使用命令行终止进程。右键单击项目>在本地终端中显示>终端,输入
TASKKILL /IM func.exe /T /F
killfunc.exe
。在终端中运行函数,因此我们可以终止它。
1)。右键单击项目>在本地终端中显示>终端
2)。输入
mvn azure-functions:run
。3)。输入
Ctrl+C
和Y
终止功能。4)。要调试,
mvn azure-functions:run -DenableDebug
请在终端中运行,然后按照教程所述配置调试。
如果可以接受,我们可以求助于 IntelliJ IDEA,我们可以在其中一键终止进程。
推荐阅读
- reactjs - 在异步调用期间,解构赋值似乎会影响在它之前发生的变量
- sql - PostgreSQL,SQL:如何在现成的函数中使用行值作为参数?
- data-structures - 删除节点后增加展开树高度的原因可能是什么?
- python - 生成相关随机数矩阵
- json - Laravel 5.8 PhpUnit 测试控制器失败
- html - 与不同情况下的其他单位相比,百分比如何真正起作用
- tcl - 如何在 Tcl 中向字典添加附加键
- java - 当我尝试为 Selenium Web 驱动程序创建 GUI 时出现“应用程序启动方法 java.lang.reflect.InvocationTargetException 中的异常”
- algorithm - 如何根据提供的键值创建唯一组合?
- sql - 历史桌上的家政服务