I am using Visual studio Code
(Stable Version) with .Net Core 1.0 RTM
. I also Installed C#
extension for Visual studio Code & .Net Core . Now I am developing Web api
and application running fine but I want to debug my code. when I am putting break-point then it is not working and showing me error on break-point mouse hover "No Symbol loaded for this document". Kindly help me .
I tried following solution :
Visual Studio Code - Debugging
https://code.visualstudio.com/Docs/debugging
Constraint :- I do not want to use mono framework.
C/C++ for Visual Studio 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.
Prerequisites for running a C program in Visual Studio Code Download the C/C++ Extension. It is an extension provided by Microsoft that support visual studio code. It helps in IntelliSence, debugging and code browsing of the programming code in the visual studio. Download the C/C++ compilers.
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.
Visual Studio is an excellent IDE for C++. If you know it from C#, it will be comfortably familiar.
Finally I got the solution . If you want to debug dotnet core project using visual studio code then facing this kind of problem then just add "debugType": "portable"
at buildOptions
into project.json
file.
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