Skip to content

The VS Stack Trace Explorer cannot resolve .razor files #77499

@AdmiralSnyder

Description

@AdmiralSnyder

Version Used: VS 17.13.2

Steps to Reproduce:

  1. in a .razor file in a blazor project, cause an exception and catch it somewhere to get the stacktrace
    example:
    System.Exception: peng button clicked. at _redacted_.Forms.Dev.AlexTestForm.ButtonClick() in _redacted\Dev\AlexTestForm.razor:line 33 at _redacted_.Blazor.Common.Components.ErrorHandlingBase.CallStateHasChangedOnAsyncCompletion(Task task) in _redacted_\ErrorHandlingBase.cs:line 397
  2. paste the exception into the Stack Trace Explorer
  3. observe that the last row (going into the ErrorHandlingBase.cs file) can be clicked and jumps there, while the first one (going into the .razor file) can't

Expected Behavior:
jumping into a .razor file works
Actual Behavior:
nothing happens

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions