Skip to content

Some user defined symbols started to get DebuggerNonUserCode #15298

@auduchinok

Description

@auduchinok

Starting with .NET 7, some user defined functions get DebuggerNonUserCode attribute, which is not expected. Consider let functions in types:

type T() =
    let f x = x + 1

It gets the attribute despite being a user defined method:
Screenshot 2023-06-01 at 17 41 23

This may affect analysis in tools like debugger and it actually breaks a part of analysis for us.
Can this change be reverted for user-defined compiled methods, please?

This issue has been extracted from #14858 (comment).

Metadata

Metadata

Assignees

Labels

Area-Compiler-CodeGenIlxGen, ilwrite and things at the backendBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions