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?
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.
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 .
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With