roslyn: Cannot hit breakpoints in parameter mapped locations

This ends up impacting Blazor scenarios where Blazor generates @currentCount as:

image

And then attempting to set a breakpoints results in a failure to bind or step over: image

/cc @tmat

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Alright, apologies for my confusion, the issue is at runtime the breakpoints aren’t hit. The inability to create them in the LSP editor is a known thing that is irrelevant for this bug, for all intents and purposes.

Not sure what you mean. I’m just saying that we need to review EnC and see if its active statement mapping works for #line mapped spans. There might be issues there. Even then, once we fix those, it might turn out that supporting different runtime and compile time code is just not reasonable.

I’ll investigate.