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.

Could not attach to process with CustomPipeName: 'AzureFunctionsPSWorker'

See original GitHub issue

I have a PowerShell Function App which I would like to build and test locally. Previously, I could run locally with no issue, but now this is no the case. When I type func host start or F5, I am prompted with the following error:

You must have the Azure Functions Core Tools installed to debug your local functions.

When I click install, I get the following error:

Could not attach to process with CustomPipeName: ‘AzureFunctionsPSWorker’

*** I have opened this issue in the vscode-azurefunctions repo as well. As I am not sure who can help me: https://github.com/microsoft/vscode-azurefunctions/issues/1744#issue-534941282

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
nnekaedecommented, Jan 7, 2020

Yes I get this error in Powershell. I can meet at 1:00 which is my 3 pm.

0reactions
cpersoncommented, Jan 13, 2021

I came across this in my search and I was having the issue described. I ran func: host start --verbose

I noticed the terminal log got hung on a step where it’s attempting to grab the latest Extensions for Azure Core tools (?). THen, I got the error described above.

That led me to remove the "extensionBundle": {} block in the hosts.json file of my project which ultimately resolved my issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Azure Functions throws error, "The pipeline ...
Run Get-PSHostProcessInfo locally to ensure there is no dotnet process. From VS Code, Attach to PowerShell Functions with the following config.
Read more >
Unable to Attach to the Process - Visual Studio (Windows)
Unable to attach to the process. Debugger component on server received access denied while connecting to this machine. There are two common ...
Read more >
Attach to running process not working and geting hung
When I select Debug / Attach to Process (or press CTRL+ALT+P) - I get a spinner and eventually my screen becomes unresponsive.
Read more >
Can't Debug/Specify Port in .NET 4.8 Azure Function ...
I am unable to debug an Azure Function in Rider. I get "A debugger was not attached within the expected time limit. The...
Read more >
after upgrade gdb won't attach to process
In Maverick Meerkat (10.10) Ubuntu introduced a patch to disallow ptracing of non-child processes by non-root users - ie. only a process ......
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