Skip to content
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 with breakpoints in Azure Function app initialization code in Program.cs #1717

Open
nlykkei opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nlykkei
Copy link

nlykkei commented Jan 12, 2025

Describe the Issue

I want to break add breakpoints in Azure Function app initialization code in Program.cs.

Consider the following code:

Image

This breakpoint is ignored in VS Code, but works fine in JetBrains Rider. In VS Code, breakpoints only works in function code, i.e. methods with the attribute [Function(nameof(MyFunction))].

Steps To Reproduce

Create a new Azure Function app project from a template, set a breakpoint in Program.cs, and run the project in debug mode (F5)

Expected Behavior

I expect that debugging breaks at the breakpoint in Program.cs

Environment Information

OS: MacOS (M3/arm64)
VS Code: 1.96.2
C# Dev Kit: 1.14.14

@nlykkei nlykkei added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant