1

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.

3
  • Change your interpreter to use ps-core in settings.json. Presently, it's using Windows PowerShell v5.1. Commented Jun 24, 2019 at 15:25
  • I looked in the UI Settings, and scanned the settings.json but found nothing related to interpreter other then something for python. I googled vs code interpreter powershell and came up short there too. I agree though, that seems what needs to be done Commented Jun 25, 2019 at 10:19
  • Search integratedterminal Commented Jun 25, 2019 at 10:45

1 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

1 Comment

Setting those two fixes it although I had to make the default version: "PowerShell Core 6 (x64)"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.