This article is a mirror article of machine translation, please click here to jump to the original article.

View: 17719|Reply: 0

[.NET Core] Debugging. NET Core Web Applications

[Copy link]
Posted on 6/5/2019 4:58:06 PM | | |
1. Select the "IIS Express" button in the IDE to generate and run the application in debugging mode. (Alternatively, press F5 or select "Debug" > "Start Debugging" from the menu bar.) ), as shown in the figure below:
Note: If you see an error message that reads "Unable to connect to web server 'IIS Express'", close Visual Studio and open it using the "Run as administrator" option in the right-click menu or context menu. Then, run the app again.
2. Visual Studio launches the browser window. Select the page that needs to be debugged.
3. The debugging page in the browser will render the text set in the HomeController.cs file.
4. Keep the browser window open and return to Visual Studio. Open Controllers/HomeController.cs
5. Set a breakpoint on the first line of the Controller method to be debugged. To do this, click on the margin or place the cursor over the line and press F9.
6. Go back to the browser and refresh the debugging page. This triggers a breakpoint in Visual Studio.
7. In Visual Studio, hover over a data member to view their data.






Previous:Establish a terminal link and get an error "You need to run "nvm install N/A" to install it....
Next:component factory found for xxxComponent. Did you add it to @NgModule...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com