question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to start host for debugging Azure Functions

See original GitHub issue

Issue 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:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mdixon-equinixcommented, Jun 10, 2022

Hello: I worked directly with Microsoft Support and we were able to get the issue fixed by taking these steps:

  1. Removed the extensionBundle section from host.json file
  2. Ran this command in the PowerShell terminal: func extensions install –force
  3. This analyzed my functions and reported that extension C# for Visual Studio Code (powered by OmniSharp) needed to be installed.

Once the C# for Visual Studio Code extension was installed, was able to successfully debug my PowerShell Azure Functions.

0reactions
cemmetje87commented, Dec 14, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure functions debug fails to start on a non-trivial project
Try starting debugging it. At this point it works fine. Open Program.cs and change Main function body to: var host = new ...
Read more >
Unable to run and debug function app in VS Code · Issue #2071
After creating a new v4 app (.net v6 in-proc) using the functions VS Code extension, I am not able to run and debug...
Read more >
Unable to debug Azure functions locally? - Microsoft Q&A
I have VS 2019 professional and trying to debug an Azure function with .net core 3.1. But the moment I start the project...
Read more >
Not able to debug Azure Functions in Visual Studio Code ...
Put a breakpoint at some code line inside the Run Method and Start debugging. All the code files and debugging video is available...
Read more >
How to remote debug Azure Functions in Visual Studio 2022
Sometimes it may not be easy to debug Azure Functions deployed on Azure since we cannot do inline debug through the Azure Portal....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found