Search code examples
powershellvisual-studio-codeazure-functionsazure-functions-core-tools

Error Debugging PowerShell Azure Function in VSCode


New to all of this so sorry if I am just being stupid here. But I installed VSCODE, the Azure Core Functions Ext, PS6, NETCORE2.2, NODEJS.

Setup a Azure Function and go to run with debugging and get the following error message.

Error Message .

I can turn the server no problem by going to Terminal -> Run Task -> func: Host Start starting the task but can't debug. What am I missing to get this working?

Yes I see it talks about launch.json but if I have to change it, have zero idea what to put in there.


Solution

  • This will be corrected when PowerShell 6.2 is installed. Install powershell 6.2 from doc and configure in Visual Studio code as follow.

    enter image description here