Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vs code c# omnisharp , how can I debug external library

I am trying to step through my ASP net core library code in visual studio code and don't know how to basically disable "just my code" and attach pdbs.

The default stack inspecting omnisharp behavior during a breakpoint hit is:

MyNamespace.MyCLass.function()    
[External Code] (\Unknown Source:0)

How can I debug external library code?

like image 297
Ovidiu Buligan Avatar asked May 08 '17 12:05

Ovidiu Buligan


People also ask

Is VS Code good for C?

C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS.

Can you code C in VS?

Visual Studio Code is a lightweight, cross-platform development environment that runs on Windows, Mac, and Linux systems. The Microsoft C/C++ for Visual Studio Code extension supports IntelliSense, debugging, code formatting, auto-completion. Visual Studio for Mac doesn't support Microsoft C++, but does support .

How can I run C program in VS Code?

After writing the code, right-click on the program, as shown below. Click on the Run Code option or press Ctrl + Alt + N from the button.

Why C is not working in VS Code?

Go to the menu Code > Preferences > Settings. In the User tab on the left panel, expand the Extensions section. Find and select Run Code Configuration. Find and check the box Run in Terminal.


1 Answers

It seams that I needed to edit vs code's launch.json workspace file according to :

https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md the section with "justMyCode":false , "requireExactSource": false and "symbolPath": [ "/Volumes/symbols" ]

Now the problem is the symbols. Can't seam to find .net core symbols for public releases of asp net mvc. I will have to manually compile https://github.com/aspnet/Mvc ,and all the other middleware I am interested in.

like image 138
Ovidiu Buligan Avatar answered Nov 11 '22 20:11

Ovidiu Buligan