microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 131 forks source link

Cannot debug JS/TS Functions using v4 runtime without a connected storage account #4060

Open sinedied opened 3 months ago

sinedied commented 3 months ago

When I try to debug a JS or TS project using the v4 runtime, I get this error when trying to start the debugger:

image

When using the v3 runtime, the message is not there and I can debug my functions properly.

Worse, if I simply change the azureFunctions.projectLanguageModel from 4 to 3 in .vscode/settings.json, I can debug my v4 functions without any issues.

Screenshot 2024-03-21 at 10 22 31

Note that my projects doesn't use any storage connectors, so I don't why I should connect a storage. Also, when running the project from the command line with func start, everything works fine.

To reproduce

  1. Using VS Code extension, create a new JavaScript or TypeScript project using v4 runtime and an HTTP trigger.
  2. Go to the VS Code debugging tab, and try to start the debugger