-
Notifications
You must be signed in to change notification settings - Fork 457
Startup is not being invoked #7430
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
Comments
You might try to reproduce by new fresh project to test it. As I see, you should hit the breakpoint from the configuration you posted. My project using Visual Studio hit perfectly, all config are the same with you. |
I was able to replicate this with a barebones new repo: https://github.com/mmulhearn/azure-func-startup-issue |
@mmulhearn Seem it's an known bug on Visual Code on this repository has raised: microsoft/vscode-azurefunctions#1971 Actually it will run, but, it can't hit a breakpoint But if you take debugging in Visual Studio, it worked fine. |
@zhenyuan0502 thank you. Didn't even cross my mind that the IDE isn't attaching fast enough. Thank you for linking. |
Hi @mmulhearn, Let us know if the above information resolves your query, or if you have any further queries. |
Yes, I can follow the linked issue as that seems to be the problem. Launching from VS works. Thanks @zhenyuan0502 |
This is a continuation of #5401, but for
Microsoft.NET.Sdk.Functions
v3.0.12. Downgrading to v3.0.3 or v3.0.5, as found as the fix for #5401, also does not fix the issue.Using Visual Studio Code, my startup file is not being invoked even though the logs seem to indicate the process is aware of the startup file. I am running this locally and debugging and my breakpoints are not being hit, neither on warmup nor on the first request.
.csproj
host.json
local.settings.json
startup.cs
logs
The text was updated successfully, but these errors were encountered: