-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to debug dotnet-isolated Azure Function with specific logging configuration #595
Comments
For Rider, we pass the I've created an issue with the Azure Functions repo here, as we need the PID to be able to attach the debugger: Azure/azure-functions-dotnet-worker#900 For now, I would recommend keeping the host logging set to |
Thanks for the quick reply and the issue at the Azure Functions repo. I'll keep an eye on it. In the meantime I figured out a workaround, which maybe helps others. So I will leave this information here. You are able to overwrite {
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"AzureFunctionsJobHost:Logging:LogLevel:Host": "Information" <-- this overwrites the host log level
}
} |
That's a really good find, thank you @LarsBauer ! |
|
It seems it worked after editing net8.0 |
Hi,
I cannot debug my dotnet-isolated Azure Function (.NET 6) locally. After successful build the process runs a long time with the status
... and then ends with the following error message.
When I start the debugging from terminal I am able to attach to the process in Rider without a problem. So I guess this issue is somehow related to the tooling.
Here is my environment:
Windows 11
JetBrains Rider 2022.1.1
Azure Toolkit for Rider 3.50.0.1413-2022.1
Strange observation I made when trying to narrow down the problem. As soon as I configure any log level with a higher severity than
Information
for the host in myhost.json
the debugging fails with the above mentioned error. When I set the value toInformation
or any other lower severity the debugging is working fine. At this point I am not sure whether this is the root cause but it is definitely strange...If you need any more information I am glad to provide it. Thanks in advance!
The text was updated successfully, but these errors were encountered: