This article is about to setup from scratch with visual studio code open source and create and debug basic .net core mvc applications.
Installation finished successfully.
After installing Visual studio code configure .net core and C#.
Once done above steps , C# extension available in VS Code.
Download .net core sdk from here. Choose Windows=>CommandLine.
Install the sdk like below.
.Net core sdk installation done successfully.
Now you can finally see the mvc project in VS code.
All the basic mvc structure files you can see.[Model-View-Controller]
Open the project folder in VScode.
Sample here i am setting break point in home controller.
Now click the debug option.
add debug configuration like below. Make sure .Net core Launch(web) is selected.
You can see break point will hit , once you start debugging by press run icon.
Then give continue. Web page will shown in browser like below.
Web page is seems broken.
Press "F12" or open developer tool.
You can see some errors in console.
Few bootstrap and jquery files were not loaded.
[Find a script and css files by Ctrl+shift+f in VS code and enter missed file name and search.]
Fix this by adding scripts with cdn or exact file location in layout file.
Now refresh the page and watch.
Now site seems fine and no more console error finally.
Happy coding.