Install the 1.15 or later C# (by OmniSharp) Extention (View -> Extensions, then type OmniSharp, and click on ‘Install’)
Use File -> Open Folder to open the razor folder you have created in step 1
It may ask at the bottom right to install assets to build and debug, say yes.
After it has done this it will have created a .vscode directory in the ‘razor’ directory and a ‘launch.json’ file in that directory. Open the ‘.vscode’ directory, and double click on the ‘launch.json to edit it.
Add the following lines after the “name” line of the “Configurations” object. (This allows debugging through the framework.
Double click on the ‘Startup.cs’ file in the ‘Explorer’ pane to bring up that source code.
Add the following line to the Startup.cs file at the beginning of the ‘Configure’ method (at the bottom of the file).
Console.WriteLine("x " + 3);
Place a breakpoint on that line (F9).
Run the application until it hit that breakpoint (F5). It will load symbols from the Microsoft symbol server, and may take a few seconds to hit the breakpoint. You should see 20-30 lines of ‘Loaded XXX Symbols loaded’. Lines as it does this).
Step into the concatination method (F11). This tests CoreCLR symbols AT THIS POINT IT SHOULD SHOW YOU THE SOURCE CODE FOR Concat(). If it does not that is a FAILURE. Please report it.
Step out of Concat (Shift F11). Then step into Console.WriteLine (F11).
Expected behavior
This tests CoreFX symbols AT THIS POINT IT SHOULD SHOW YOU THE SOURCE CODE FOR Console.WriteLine().
Actual behavior
Cannot step into Console.WriteLine (F11). The CoreFX symbols are missing.
Environment data
dotnet --info output: .NET Core SDK (reflecting any global.json): Version: 3.1.301 Commit: d88f25203a
Runtime Environment: OS Name: Mac OS X OS Version: 10.15 OS Platform: Darwin RID: osx.10.15-x64 Base Path: /usr/local/share/dotnet/sdk/3.1.301/
Host (useful for support): Version: 3.1.5 Commit: 65cd789777
.NET Core SDKs installed: 3.1.301 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
VS Code version: 1.45.1 C# Extension version: 1.22 (v1.22.0)
Steps to reproduce
Create a new ASP.NET Razor project by doing
mkdir razor cd razor dotnet new razor
Install VS code (if you have not already) https://code.visualstudio.com/Download
Launch VSCode and install the C# extension.
Install the 1.15 or later C# (by OmniSharp) Extention (View -> Extensions, then type OmniSharp, and click on ‘Install’)
Use File -> Open Folder to open the razor folder you have created in step 1
It may ask at the bottom right to install assets to build and debug, say yes.
After it has done this it will have created a .vscode directory in the ‘razor’ directory and a ‘launch.json’ file in that directory. Open the ‘.vscode’ directory, and double click on the ‘launch.json to edit it.
Add the following lines after the “name” line of the “Configurations” object. (This allows debugging through the framework.
Double click on the ‘Startup.cs’ file in the ‘Explorer’ pane to bring up that source code.
Add the following line to the Startup.cs file at the beginning of the ‘Configure’ method (at the bottom of the file).
Console.WriteLine("x " + 3);
Place a breakpoint on that line (F9).
Run the application until it hit that breakpoint (F5). It will load symbols from the Microsoft symbol server, and may take a few seconds to hit the breakpoint. You should see 20-30 lines of ‘Loaded XXX Symbols loaded’. Lines as it does this).
Step into the concatination method (F11). This tests CoreCLR symbols AT THIS POINT IT SHOULD SHOW YOU THE SOURCE CODE FOR Concat(). If it does not that is a FAILURE. Please report it.
Step out of Concat (Shift F11). Then step into Console.WriteLine (F11).
Expected behavior
This tests CoreFX symbols AT THIS POINT IT SHOULD SHOW YOU THE SOURCE CODE FOR Console.WriteLine().
Actual behavior
Cannot step into Console.WriteLine (F11). The CoreFX symbols are missing.