You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Exception thrown within a view (or the code a view calls) correctly breaks execution. But the display shows neither the Razor-generated C# code nor the .cshtml source. It seems the C# extension does not support the project directory being the virtual root used in generated #line pragmas. The same code works fine in Visual Studio.
The above image is from a Windows system. The behaviour is the same on a Linux (Ubuntu 14.04 LTS) system except the slashes go in the opposite direction.
The text was updated successfully, but these errors were encountered:
This is a bug in Razor (#803) that we don't really have a good way to work around on our side. To work around it per-project in the meantime, please add a sourceFileMap to your launch.json configuration to redirect relative .cshtml paths to their absolute counterparts.
The next version of the extension will add this to projects automatically, as well as let you set breakpoints and view/set variables and watch expressions in .cshtml files.
An
Exception
thrown within a view (or the code a view calls) correctly breaks execution. But the display shows neither the Razor-generated C# code nor the.cshtml
source. It seems the C# extension does not support the project directory being the virtual root used in generated#line
pragmas. The same code works fine in Visual Studio.The above image is from a Windows system. The behaviour is the same on a Linux (Ubuntu 14.04 LTS) system except the slashes go in the opposite direction.
The text was updated successfully, but these errors were encountered: