Unable to start host for debugging Azure Functions
See original GitHub issueIssue Type: Bug
When I select F5 to start debugging my Azure Functions, the GUI shows “host start” task spinning for several seconds, then the Terminal displays this message:
Azure Functions Core Tools Core Tools Version: 3.0.3477 Commit hash: 5fbb9a76fc00e4168f2cc90d6ff0afe5373afc6d (64-bit) Function Runtime Version: 3.0.15584.0
Value cannot be null. (Parameter ‘provider’)
Terminal will be reused by tasks, press any key to close it.
It also shows a pop-up window with this text: Exception of type ‘OmniSharp.Extensions.JsonRpc.RpcErrorException’ was thrown.
I have the latest version of PowerShell and the Azure Functions extensions.
Extension version: 1.6.2 VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:15:52.058Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Xeon® E-2276M CPU @ 2.80GHz (12 x 2808) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: unavailable_off vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 31.76GB (18.94GB free) |
| Process Argv | –crash-reporter-id f981abc5-56ff-448f-922b-3c168723e687 |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
pythonvsnew555:30457759
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550
Issue Analytics
- State:
- Created a year ago
- Comments:5 (1 by maintainers)

Top Related StackOverflow Question
Hello: I worked directly with Microsoft Support and we were able to get the issue fixed by taking these steps:
Once the C# for Visual Studio Code extension was installed, was able to successfully debug my PowerShell Azure Functions.
I was able to resolve this to update extensionBundle in host.josn to: { “version”: “2.0”, “extensionBundle”: { “id”: “Microsoft.Azure.Functions.ExtensionBundle”, “version”: “[3.3.0, 4.0.0)” } }
After restarting VSCode it worked again