vscode-azurefunctions: VS Code instance freezes after terminating vscode debugging session on javascript HttpTrigger function

I have latest vscode version running on windows 10. I am able to run Azure Functions locally on VS code using AzureFunctions ext. for VS Code, however when I run the debugger (F5) on my JavaScript Azure Function V2 (HttpTrigger), then when I stop it, very often it causes VS Code instance to crash and freeze.

Any help on this?

Its a standard project created with VS Code.

VS Code Info (Copied from About window): Version: 1.36.1 (system setup) Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529 Date: 2019-07-08T22:59:35.033Z Electron: 4.2.5 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.18362

Node.js Version: node -v --> v10.15.3

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 8
  • Comments: 28 (10 by maintainers)

Most upvoted comments

Okay folks just released v1.1.0 of the extension which should hopefully fix this issue. I’m going to go ahead and close it, but let me know if you’re still having problems after updating. Hard to know for sure because I was never able to get a consistent repro

@SDP190 @askpatrickw @sbatten FYI we just released v0.19.0 of the extension. It has a new setting azureFunctions.stopFuncTaskPostDebug which you can set to false if you don’t want us to stop the functions host after you stop debugging (which may be causing the crash).

Let us know if that helps. Also let us know if you still see a crash if you manually stop the functions host (either through ctrl-c or the trash can icon).

Experiencing the same issue with Python debugger

any updates on this. I having the same issue with a C# function app with a timer trigger

Hi @EricJizbaMSFT - I have the same problem as @jsacapdev:

Running an Azure Function App (C#) locally, in debug mode. Set some break points. Call the local FA via Postman a time or three.

Then, attempting to stop debugging via disconnecting, the UI freezes and eventually (10-20 seconds later) VSCode pops a window stating the environment is non responsive and asks if I want to restart it.

Function App version: 3.0.2630

VS Code:

Version: 1.47.3 (user setup) Commit: 91899dcef7b8110878ea59626991a18c8a6a1b3e Date: 2020-07-23T13:12:49.994Z Electron: 7.3.2 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Windows_NT x64 10.0.18363

Happy to provide any other details needed.