Cannot bind parameter 'log' to type TraceWriter

后端 未结 3 639
既然无缘
既然无缘 2020-12-19 08:13

Getting the below message when doing right click project -> Debug -> Start New Instance.

[1/7/2018 6:48:54 AM] A ScriptHost error has occurred[1/7/201

相关标签:
3条回答
  • 2020-12-19 08:49

    got the same error with a brand new Function project in Visual Studio 2017. After getting the prompt from Visual Studio to upgrade Azure Function to v1.0.7 , I got rid of the error

    0 讨论(0)
  • 2020-12-19 08:51

    For This to work on your machines, you will have to do two things. Follow the Visual Studio section in this link

    1. Install Azure-functions-core-tools@core package is installed using npm.
    2. Create a debug profile and setup as shown below and use that profile while launching it from visual studio.

    Please find the image below for your help.

    0 讨论(0)
  • 2020-12-19 09:13

    I got same thing and fixed it by updating Azure Functions and Web Jobs Tools.

    Note that as per the change list here, support for remote debugging of V2 functions was only enabled in 15.0.31201.0, and was granted a bug fix in 15.0.40108.0. https://github.com/Azure/Azure-Functions/blob/master/VS-AzureTools-ReleaseNotes.md

    So, go into Tools and Extensions, see what version of the Azure Functions and Web Jobs Tools you have, and if it's older than 15.0.40108.0, upgrade it.

    0 讨论(0)
提交回复
热议问题