Unable to debug with breakpoints in Azure Function app initialization code in Program.cs #1717
Labels
area-dotnet-debugging
Issues around .NET Debugging with console, ASP.NET, or Aspire
bug
Something isn't working
enhancement
New feature or request
Milestone
Describe the Issue
I want to break add breakpoints in Azure Function app initialization code in Program.cs.
Consider the following code:
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
The text was updated successfully, but these errors were encountered: