Debugging two Azure Functions projects locally

爱⌒轻易说出口 提交于 2020-01-14 18:45:33

问题


I have two Azure Functions projects.

I have one project, A, running on localhost:7071/api/....

I have changed the other project, B, to run on localhost:8888/api/...

I am calling a function which is running on project A from a function in Project B! How can I debug two Azure Functions projects locally? I cannot find any docs to help me.


回答1:


To fix the issue add the command line switch --nodeDebugPort 5859 to your launching of func host to set the port for one of the sessions.

If you are launching from within Visual Studio you need to go to Project -> Properties -> Debug, then under Application arguments you need to pass in a value that looks similar to host start --pause-on-error --nodeDebugPort 5859 (again, for one project).

See this issue and this video.



来源:https://stackoverflow.com/questions/51932289/debugging-two-azure-functions-projects-locally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!