Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio code(using C#): While putting debugger point then showing me "No Symbol loaded for this document"

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.

like image 315
KP Chundawat Avatar asked Jul 17 '16 13:07

KP Chundawat


People also ask

Can I use C in Vscode?

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.

How do I use C code in Visual Studio?

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.

Why C is not running 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.

Is Visual Studio best for C?

Visual Studio is an excellent IDE for C++. If you know it from C#, it will be comfortably familiar.


1 Answers

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.

like image 64
KP Chundawat Avatar answered Oct 09 '22 07:10

KP Chundawat